My app is:
- Taking a photo with the camera (media.show)
- Creating a “save” group to contain the final output elements
- Modifying its captured photo size to fit the screen size, and inserting in save group
- Inserting a “watermark” type tag line at the bottom (similar to a logo), into the group
- Applying a mask to the save group to ensure final output images are an exact aspect ratio (no stretching on other devices!)
- Doing a display.save() of the group.
- Cutting the size of all the above elements to 1/4, and saving them again, as a thumbnail image.
- Uploading both saved images to a server (saving both a thumbnail and a large image).
-removeSelf all the temporary elements used to compose the group, nil everything out, voila. Done.
With all of that, you never see the temporary images - not once - on the screen. I dunno what display.save is doing, or where exactly, but I see nothing onscreen for all of it.
And it works mint. All the scaling, all the masking, all the clipping and cropping… Both iOS and Android. And with some judicious use of masking and scaling, the images from any phone can look pretty darn good on any other phone.
As an aside, I’ve seen a lot of posts complaining about jpg quality, especially on Android (posts like, from me!) I found one workaround, but it increases saved file size. display.save() will save out .png files as well (just use a .png extension instead of .jpg). And from the looks of it, the saved pngs are a lot prettier looking than the jpgs. A lot prettier. They’re also a lot bigger – a 640x960 png saved from the device can run in the 800-900k ballpark. [import]uid: 79933 topic_id: 32501 reply_id: 129301[/import]