Page 1 of 1

convert tif to png

Posted: 2016-03-21T00:57:51-07:00
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?

Re: convert tif to png

Posted: 2016-03-21T01:11:48-07:00
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

Re: convert tif to png

Posted: 2016-03-21T01:19:09-07:00
by guangzhe_yue
You're right! Thank you!