Page 1 of 1

Can't get convert to maintain transparency of tiff

Posted: 2015-05-12T03:19:28-07:00
by HayoBaan
Hi guys, hope you can help me out here. I'm trying to convert tiff files to png while still maintaining the transparency. Somehow I can't get it to work :(

Though I don't think it should be required, I have tried -alpha on, -alpha set, -background none, -channel rgba, but to no avail. When trying e.g., -transparent white, I get some transparency, but not as defined in the tiff files.
The tiff files in question are small 21x21 icons, created with Photoshop.

What am I doing wrong?

I'm running version ImageMagick 6.9.1-0 on Mac OS X Yosemite 10.3.

Re: Can't get convert to maintain transparency of tiff

Posted: 2015-05-12T03:45:21-07:00
by snibgo
Photoshop has (I am told) different types of transparency. Perhaps IM can't see that one. Try:

Code: Select all

identify -verbose x.tiff
Does this show an alpha channel?

Re: Can't get convert to maintain transparency of tiff

Posted: 2015-05-12T04:05:26-07:00
by HayoBaan
Right, this tells me: tiff:alpha: unspecified so I guess you're right, ImageMagick does not see the transparency...

I did some more digging and finally found the problem: the tiffs were saved without the 'Save Transparency' option. Re-saving with that option set, fixed the issue.

Your answer did help me find the cause, so many thanks!