Can i use -flatten command while generating multiple images from a multi page tiff file

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
Jaspreet Kaur
Posts: 1
Joined: 2016-07-08T06:54:27-07:00
Authentication code: 1151

Can i use -flatten command while generating multiple images from a multi page tiff file

Post by Jaspreet Kaur »

I am using the following command to get multiple images from a multipage tiff file
convert.exe -thumbnail 1200x1200 -units PixelsPerInch -density 45x45 multipage_tif_example.tif page%d.jpg

but when I add -flatten command as follows, I get only one page. Why such a behaviour ?

convert flatten -thumbnail 1200x1200> -units PixelsPerInch tif:multipage_tif_example.tif -density 45x45 Page.%d.jpg


Thanks,
Jaspreet
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Can i use -flatten command while generating multiple images from a multi page tiff file

Post by snibgo »

Your syntax is wrong. It should be: read the input images, do the processing, then write the output.

But that wouldn't change the effect of "-flatten". This flattens all the images in the list over each other, so there is only one output. That is what it is designed to do. See "flatten" in http://www.imagemagick.org/script/comma ... php#layers . If you don't want this, then don't use "-flatten".
snibgo's IM pages: im.snibgo.com
Post Reply