results in `file.png`, instead of `file-{0,1}.png` while `file.pdf` has 2 pages, why?
Feb 25, 1:01pm
The behavior you're observing with the convert command (part of ImageMagick) is due to how the -flatten option interacts with multi-page PDFs.
Why you get a single file.png instead of file-0.png, file-1.png:
-flatten merges all layers and pages into a single output image.
When you use -flatten, ImageMagick combines all pages of the PDF into one flattened image, resulting in a single output file (file.png). This is the expected behavior of -flatten: it merges everything into one image, regardless of the number of input pages.
Without -flatten, ImageMagick outputs one image per page.
If you omit -flatten, ImageMagick will generate separate output files for each page (e.g., file-0.png, file-1.png).