Resize Image & Save

HI, 

I would like to open an image from the Album, resize and save it to my documentsfolder.

So … I open it with

media.selectPhoto( { mediaSource = media.PhotoLibrary, 

–destination = {baseDir=system.DocumentsDirectory, filename=“Images/dphoto.jpg”, type=“image”}, 

origin = backBtn.contentBounds, 

permittedArrowDirections = { “up”, “down” } , 

listener = onPhotoComplete } )

resize it

local s = (display.contentHeight) / photo.height

photo:scale( s,s )

save it

        display.save( photo, { filename=“Images/dphoto.jpg”, baseDir=system.DocumentsDirectory, isFullResolution=true } )

BUT ---- > 

I have in the config.lua a ratio 768x1024 with scale = “zoomStretch”,

So the display.save always mess it up , as I understand because of the “zoomStretch”

How can i simply load an image from the MediaLibrary, make it fit to the screensize

and save it… and it will be not stretched wrong???

thanks

chris

and on new devices it S