Hi,
I’m using “display.save(displayGroup, fileName)” to save a user created image group as a file.
Now I’d like to trim the transparent area around the saved image. Is there a way to do this?
Hi,
I’m using “display.save(displayGroup, fileName)” to save a user created image group as a file.
Now I’d like to trim the transparent area around the saved image. Is there a way to do this?
Hi!
I’m also looking for a way to do that. An option, if you know the width and height of the image is to use the crop library: http://developer.coronalabs.com/code/useful-crop-library
In my case I apply a a mask to an image. The masks must be divisible by 4 and must be bordered by at least 3 pixels of black space on all four sides. When I use display.save() function, the image saved have the size of the mask, including the extra pixels to be divisible by 4. As I don’t know the final dimensions of the image I can’t place i in the right spot. Any help would be great!
My problem is that I’ve images that the user zooms in/out and rotates. Some of those images contain diagonally laid out items. Even though they are trimmed in their original version, when they’re rotated (made horizontal for example) they contain a large amount of transparent section at the top and at the bottom that I can’t get rid of. It can be trimmed again using an image manipulation library but I don’t think that we have that in/for Corona SDK.
Hi!
I’m also looking for a way to do that. An option, if you know the width and height of the image is to use the crop library: http://developer.coronalabs.com/code/useful-crop-library
In my case I apply a a mask to an image. The masks must be divisible by 4 and must be bordered by at least 3 pixels of black space on all four sides. When I use display.save() function, the image saved have the size of the mask, including the extra pixels to be divisible by 4. As I don’t know the final dimensions of the image I can’t place i in the right spot. Any help would be great!
My problem is that I’ve images that the user zooms in/out and rotates. Some of those images contain diagonally laid out items. Even though they are trimmed in their original version, when they’re rotated (made horizontal for example) they contain a large amount of transparent section at the top and at the bottom that I can’t get rid of. It can be trimmed again using an image manipulation library but I don’t think that we have that in/for Corona SDK.