Saving image to device photo directory

I saw previously where this was on the requests list and Im wondering if it has been added yet?

Basically I need to take a screenshot in the app and then add a logo to it before saving it to the persons photo directory on their device.

I can save an image to the temp directory already and I can save a screenshot to their photo directory on the device but I need to be able to merge the two so that I can save a picture, put it in a group and add the logo as another object in the group, save them all out as the image and save it in their photo directory.

Anyone know if this has been added yet or any other way around it?

Thanks [import]uid: 44553 topic_id: 32501 reply_id: 332501[/import]

Why don’t you just load the logo onto the screen, take the snapshot, then remove the logo? [import]uid: 40033 topic_id: 32501 reply_id: 129267[/import]

I could do that but theres other information i wanted to put on it also so it would be easier to do it without that all having to appear on the screen while the person is using the app and better for it to be done off screen if possible. There was mention of it being on the request list back in April so I thought it might have been added by now. [import]uid: 44553 topic_id: 32501 reply_id: 129270[/import]

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]

Why don’t you just load the logo onto the screen, take the snapshot, then remove the logo? [import]uid: 40033 topic_id: 32501 reply_id: 129267[/import]

I could do that but theres other information i wanted to put on it also so it would be easier to do it without that all having to appear on the screen while the person is using the app and better for it to be done off screen if possible. There was mention of it being on the request list back in April so I thought it might have been added by now. [import]uid: 44553 topic_id: 32501 reply_id: 129270[/import]

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]