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
Can i use -flatten command while generating multiple images from a multi page tiff file
-
- Posts: 1
- Joined: 2016-07-08T06:54:27-07:00
- Authentication code: 1151
-
- 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
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".
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