Saving converted images without applying the alpha layer
Posted: 2011-08-29T09:51:35-07:00
Greetings all,
I have been struggling with this problem for a while now. It seems simple enough but I am not quite able to create the result I want. I am currently trying to convert an image to a psd type to be opened later. When I do a straight conversion the alpha layer is applied to the resulting images, so I lose the original full image. For example, using the tutorials found at http://www.imagemagick.org/Usage/masking/#alpha_off I have as my background the resulting image of the "convert moon.png -alpha off alpha_off.png" command. My alpha layer creates the first image, with the moon. When I do my image conversion, the resulting psd has the alpha layer I want (that would create the moon shape) but the rbg image also has applied the alpha, and so I dont preserve the original full image background, only what is under the white part of my alpha layer.
It is not enough for me to use:
convert moon.png -alpha off -alpha set alpha_set.psd
as then my alpha layer is lost and saved as completely opaque and white.
I had thought to use the above command and then use Dst_In with the initial image to copy the alpha layer but once again I get the same problem I had before, where I lose the background image without the alpha layer.
So, I was wondering if anyone could clue me in on how to solve this... hopefully I explained things well enough too.
Thanks for the help!
I have been struggling with this problem for a while now. It seems simple enough but I am not quite able to create the result I want. I am currently trying to convert an image to a psd type to be opened later. When I do a straight conversion the alpha layer is applied to the resulting images, so I lose the original full image. For example, using the tutorials found at http://www.imagemagick.org/Usage/masking/#alpha_off I have as my background the resulting image of the "convert moon.png -alpha off alpha_off.png" command. My alpha layer creates the first image, with the moon. When I do my image conversion, the resulting psd has the alpha layer I want (that would create the moon shape) but the rbg image also has applied the alpha, and so I dont preserve the original full image background, only what is under the white part of my alpha layer.
It is not enough for me to use:
convert moon.png -alpha off -alpha set alpha_set.psd
as then my alpha layer is lost and saved as completely opaque and white.
I had thought to use the above command and then use Dst_In with the initial image to copy the alpha layer but once again I get the same problem I had before, where I lose the background image without the alpha layer.
So, I was wondering if anyone could clue me in on how to solve this... hopefully I explained things well enough too.
Thanks for the help!