two output files when only one is needed

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
Xiarea
Posts: 2
Joined: 2011-08-25T08:09:44-07:00
Authentication code: 8675308

two output files when only one is needed

Post by Xiarea »

Hello,

I have sevral .tif files I try to convert to .png using IM 6.6.4-1 Q16 on windows and each time, I get two output files (a big one and a small one)

I've tried without any option I get the same result, I've also tried different file format for the output and can't figure out how to get a single outputfile having the right name :?

I sincerely hope someone can help?
Thanks in advence
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: two output files when only one is needed

Post by fmw42 »

Your tiff has either two frames/pages or multiresolution images. To get the larger one, which I presume is the larger, use

convert image.tiff[0] ...

That gets the first frame/page/image. If you have other tiffs that only have one frame/page/image, the [0] will not hurt.


If it turns out to be the second image, which I doubt, then use

convert image.tiff[1] ...


see http://www.imagemagick.org/Usage/files/#read_mods
Xiarea
Posts: 2
Joined: 2011-08-25T08:09:44-07:00
Authentication code: 8675308

Re: two output files when only one is needed

Post by Xiarea »

Thank you, it works very well!
Post Reply