convert tif to png

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
guangzhe_yue
Posts: 6
Joined: 2016-03-21T00:11:24-07:00
Authentication code: 1151

convert tif to png

Post by guangzhe_yue »

I want to convert TIF to PNG with the command "convert 1.tif 1.png".It generated 2 files "1-0.png" and "1-1.png",but I want only one.
How can I do?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert tif to png

Post by fmw42 »

Your TIFF file has two layers. So you will get two output PNG files. If you only want the first Tiff layer then use

Code: Select all

convert image.tif[0] image.png
guangzhe_yue
Posts: 6
Joined: 2016-03-21T00:11:24-07:00
Authentication code: 1151

Re: convert tif to png

Post by guangzhe_yue »

You're right! Thank you!
Post Reply