Transparency lost in PNG to Tiff Conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jeffreyrempel
Posts: 2
Joined: 2013-03-28T11:46:06-07:00
Authentication code: 6789

Transparency lost in PNG to Tiff Conversion

Post by jeffreyrempel »

Hi,

I have spent hours trying to find a way to convert a transparent PNG to a Tiff that will be transparent in both Photoshop and Indesign. The only result I have gotten so far is a tiff were the transparent area is either solid white or black. Thanks in advanced for any help you can provide.

I am not seeing a way to attach images but I would be happy to provide my sample image.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Transparency lost in PNG to Tiff Conversion

Post by fmw42 »

The issue may be that IM 6 cannot handle both background transparency and alpha transparency. It may only be able to handle one.

You can upload your image to any free image host such as dropbox. The post a link to it here.

Please identify your version of IM and platform. Perhaps an IM upgrade might help. But lets check your image first.
jeffreyrempel
Posts: 2
Joined: 2013-03-28T11:46:06-07:00
Authentication code: 6789

Re: Transparency lost in PNG to Tiff Conversion

Post by jeffreyrempel »

Thanks for the quick response!

I have posted my image to https://www.dropbox.com/s/8hngwurcvoqvboe/PNG40.png

I am using ImageMagick 6.8.4-1. It should be the latest version I downloaded it today.

I am running on a windows 7 x64 machine.

Thanks, Again
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Transparency lost in PNG to Tiff Conversion

Post by fmw42 »

I converted your png to tif in IM 6.8.4.3 and it opens fine in my old Photoshop CS, where it has an alpha channel. It displays fine in my Safari browser. I do not have Indesign to test it. The alpha channel in PS seems rather odd to me though I am no expert. It shows as black on white as the channel. And in the display it shows as a black quadrilateral in the middle of the image. When one checks on the alpha channel, then the rectangle shows as red. So it seems to me that this was create in some rather odd manner.

If you double click on the alpha channel, it shows that the transparency is red with 50% opacity. Perhaps you should edit it and make it black with 0 opacity so that it is fully transparent.

But apparently IM discards this color and opacity information, since when I view the PNG in my browser it shows as perfectly transparent.

I do not know enough about the PNG properties to know where that color and opacity might be stored or if PS is just adding it for some reason.

Perhaps another user knows more about PNG and PS/TIFF than I do and can answer this question better.
Post Reply