Page 1 of 1

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

Posted: 2016-07-08T07:05:04-07:00
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

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

Posted: 2016-07-08T07:22:31-07:00
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".