Does this save the image to the new size?

Hello,

I need to resize a picture taken by the camera and then upload it. After I resize it is it being saved that size? The pictures from the camera are so big so I need to size them down before uploading.

Here is how I view a smaller image of the picture taken.

 myImage = display.newImage( "CameraShot2.jpg",system.TemporaryDirectory,50,300) local w = myImage.width local h = myImage.height local s = 155/h myImage:scale(s,s)

You’ll need to add the image to its own display group, then do a display.save() to save to a new file - then upload that file instead of the one taken by the camera.

Related: http://forums.coronalabs.com/topic/38773-how-to-crop-a-scaled-picture/

You’ll need to add the image to its own display group, then do a display.save() to save to a new file - then upload that file instead of the one taken by the camera.

Related: http://forums.coronalabs.com/topic/38773-how-to-crop-a-scaled-picture/