Specify JPEG quality on Display.save

Currently, saving a 640x960 image with Display.save results in a very big file (sometimes almost 1 MB). Opening the same image and saving it again with another app or photoshop (keeping high quality settings and same resolution) dramatically reduce the size to a few hundreds kb.

I really would like to see an option to specify the quality of the JPEG saved.

Thanks [import]uid: 9158 topic_id: 31991 reply_id: 331991[/import]

It’s a little worse than that PXL…

The same code capturing a 640x960 pixel image on iPhone is at least 4x larger than on the Android…

So, one way to solve it, is just take the pictures on a droid!! (j/k)

Seriously though, yes – some settings for jpq quality would be very very useful… IMHO, the default quality settings for android and iphone should be the same, and the same code capturing images on both platforms should produce roughly equal size image files. [import]uid: 79933 topic_id: 31991 reply_id: 127607[/import]

A huge problem for me is that from the app I need to upload the image saved with Display.save to a server.
Sending such huge files (on iOS) is a waste of bandwidth, especially considering that there’s no simple way to send a large binary on the network (probably just two options: 1) send using a network.request POST - but the file need to be converted in base64 and gets even bigger - 2) use the luasocket ftp - but damn it, it’s not asynchronous!).
It’s driving me insane :frowning: [import]uid: 9158 topic_id: 31991 reply_id: 127673[/import]

It’s a little worse than that PXL…

The same code capturing a 640x960 pixel image on iPhone is at least 4x larger than on the Android…

So, one way to solve it, is just take the pictures on a droid!! (j/k)

Seriously though, yes – some settings for jpq quality would be very very useful… IMHO, the default quality settings for android and iphone should be the same, and the same code capturing images on both platforms should produce roughly equal size image files. [import]uid: 79933 topic_id: 31991 reply_id: 127607[/import]

A huge problem for me is that from the app I need to upload the image saved with Display.save to a server.
Sending such huge files (on iOS) is a waste of bandwidth, especially considering that there’s no simple way to send a large binary on the network (probably just two options: 1) send using a network.request POST - but the file need to be converted in base64 and gets even bigger - 2) use the luasocket ftp - but damn it, it’s not asynchronous!).
It’s driving me insane :frowning: [import]uid: 9158 topic_id: 31991 reply_id: 127673[/import]