Image Conversion PNG->Tiff

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
AmazingPhrenologist
Posts: 4
Joined: 2015-06-01T08:29:03-07:00
Authentication code: 6789

Image Conversion PNG->Tiff

Post by AmazingPhrenologist »

I have a maybe not so weird image question, based on some reading I've done (eg http://stackoverflow.com/questions/1362 ... y-and-cmyk). I'd like to have other thoughts if anyone has any.

I am converting the following image:
http://imgur.com/mzv3av6

Using the following command:
convert "C:\users\phrenologist\desktop\test\balloon.png" -resize 600x600 -compress zip "C:\users\phrenologist\desktop\test\toTiff.tiff"

When I view the tiff image in the Windows image previewer application, it looks fine. Transparency is maintained, or it is, apparently.
When I view the tiff image in photoshop, the image does not look fine - transparency is not maintained. A black boarder is present.
When I place the tiff image in indesign, the image does not look fine - transparency is similarly not maintained.
Is this a problem with Adobe applications, or a problem with my methodology of conversion? I have tried using the parameter "-transparent blue" but the resulting image did not look any different in any of the above applications.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image Conversion PNG->Tiff

Post by fmw42 »

PNG has a alpha channel and so your tif will also with your command. You would need to find that in the Photoshop channels panel and it is disabled by default. So you need to turn it on and set the color or transparency. To get the png to have background transparency use the tiff:alpha define:

Code: Select all

convert mzv3av6.png -resize 600x600 -compress zip -define tiff:alpha=associated test1.tif
See
http://www.imagemagick.org/script/formats.php
http://www.imagemagick.org/script/comma ... php#define
AmazingPhrenologist
Posts: 4
Joined: 2015-06-01T08:29:03-07:00
Authentication code: 6789

Re: Image Conversion PNG->Tiff

Post by AmazingPhrenologist »

That worked! Thank you for catching something so basic.
Post Reply