-flatten option use in ImageMagick not clear
Posted: 2017-05-25T23:58:56-07:00
My program uses ImageMagick to convert a multipage tiff to pdf.
convert.exe "C:\multipage_tiff_example.tif" -flatten "pdf:C:\cache\multipage_tiff_example-636946171.pdf"
Issue
If I use -flatten in the above command for multipage tiff files, it only renders the first page of the tiff to pdf.
And removing -flatten, gives the correct PDF rendition for all the pages.
My doubt
I read about the -flatten option as well. But I am unable to understand why it only gives a single page in the rendition.
convert.exe "C:\multipage_tiff_example.tif" -flatten "pdf:C:\cache\multipage_tiff_example-636946171.pdf"
Issue
If I use -flatten in the above command for multipage tiff files, it only renders the first page of the tiff to pdf.
And removing -flatten, gives the correct PDF rendition for all the pages.
My doubt
I read about the -flatten option as well. But I am unable to understand why it only gives a single page in the rendition.