Page 1 of 1

Re: Flattening opaque layers in PSDs

Posted: 2009-06-18T09:31:22-07:00
by fmw42
With PSD images, I believe the first frame is the composite of all the layers.

So use that to get the psd composite layer or pick the layer or layers you want.

convert test.psd[0] -flatten test.jpg
convert test2.psd[0] -flatten test2.jpg



If you do identify -verbose on your two images, you will see that some frames have no alpha channel, others have one-bit alpha and others have grayscale alpha (including one that has 15-bit alpha???). But the first frame of the first image has no alpha and the first frame of the second has 1-bit alpha.

Re: Flattening opaque layers in PSDs

Posted: 2009-06-18T23:14:10-07:00
by anthony
If all layers have some transparency, Then it is a good idea to set a 'background' color, even if that background is just 'transparent' or 'none'.