PNG TO TIFF Conversion with Transparency

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Gokhan
Posts: 1
Joined: 2011-06-13T03:02:08-07:00
Authentication code: 8675308

PNG TO TIFF Conversion with Transparency

Post by Gokhan »

Hi;

I am trying to convert a png image with transparency to a TIFF file. After this conversion i am having black background on each channel as it shows on Adobe CS4 but is shows correct on Adobe CS5 (Also image editor applications such as Picasa shows a black background)

Code: Select all

%CONVERTEXE% %IMGINPUTDIR%\%INPUTFILE%  -type truecolormatte +compress  %IMGOUTPUTDIR%\%OUTPUTFILE% 
i am suspicious about color palette and depth as when i compare "Photoshop CS4 PNG to TIFF" and "IM 6.7.0 PNG to TIFF" . i see this

Photoshop CS4
----------------------------
Depth: 8/16-bit
Channel depth:
red: 16-bit
green: 16-bit
blue: 16-bit
alpha: 8-bit


IM 6.7.0
---------------------
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 8-bit






i have seen couple threads on here bur sadly no solution yet. Any advice?

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

Re: PNG TO TIFF Conversion with Transparency

Post by fmw42 »

Post a link to your PNG file so others can test/check it.

You seem to be running IM in default Q16 mode. If you want 8-bit per channel results add -depth 8 to your command.
Post Reply