Page 1 of 1

Convert/Mogrify questions

Posted: 2010-08-31T04:51:27-07:00
by ebzzry
I'm curious, why does convert/mogrify generate these odd-looking filenames when I use it.
They are labeled with "-0" and "-1" before the extension name.

When I run the command:

Code: Select all

mogrify -format jpeg file.tif
I get the following files:

Code: Select all

file-0.jpeg
file-1.jpeg
The one with "-1" is a small thumbnail-like version.

Is this behavior expected? By the way, I'm using the latest Windows build.

Re: Convert/Mogrify questions

Posted: 2010-08-31T08:21:44-07:00
by el_supremo
The TIFF file must have multiple frames in it. JPG format can't handle multiple frames so IM writes the two as separate files.
If you use the identify command it should list two lines of info, rather than the usual one, like this:

Code: Select all

 identify file.tif
file.tif[0] TIFF 70x46 70x46+0+0 8-bit DirectClass 20KB 0.000u 0:00.016
file.tif[1] TIFF 70x46 70x46+0+0 8-bit DirectClass 20KB 0.000u 0:00.000
Pete

Re: Convert/Mogrify questions

Posted: 2010-08-31T08:50:25-07:00
by ebzzry
I'll read more about the topic to know more about it.

Thanks for the enlightenment.

Re: Convert/Mogrify questions

Posted: 2010-08-31T18:49:41-07:00
by anthony
See IM Examples, Image File Handling, Writing a Multi-Image Sequence - Adjoin Techniques
http://www.imagemagick.org/Usage/files/#adjoin