In the my code I have a command:
[lua]media.show( media.Camera, onComplete , baseDir = system.DocumentsDirectory, filename = CameraShot.jpg" })[/lua]
The problem that user could capture a photo with a very high quality, so “CameraShot.jpg” will have too large size. And it will take a long time to upload the photo to the server.
How can I reduce with lua/Corona the “CameraShot.jpg” image quality and to receive the smaller file size before the upload of a just captured photo to the server?
[import]uid: 172733 topic_id: 34752 reply_id: 334752[/import]