Page 1 of 1

Flatten Tiff, but preserve alpha channel

Posted: 2013-12-17T12:57:04-07:00
by mambo4
I want to flatten a layered tiff while retaining the alpha channel.

using this:
convert ../source.tif -alpha on -layers flatten -filter lanczos -resize 1024x1024 -unsharp 1x0.5 %temp%/temp.tga

I lose my alpha channel, what should be transparent turns opaque white.

Re: Flatten Tiff, but preserve alpha channel

Posted: 2013-12-17T17:18:36-07:00
by fmw42
post a link to your input image. (up load to some free server such as dropbox and put link here).

Generally the alpha channel will be lost whenever you do a flatten. You may need to separate the alpha channel, process your file and the alpha channel and then add the alpha channel back.

Does your tiff file show a true alpha channel when you do

identify -verbose yourimage

Please always provide your version of IM and platform.