PDF to PNG converts only first page if colorspace=sRGB is se
Posted: 2013-01-16T18:19:32-07:00
In order to convert a PDF with 100 pages to single PNG files, I've been using the following command:
But that resulted in PNGs that were over-saturated. This is why I modified the command to the following one, adding the `colorspace` parameter:
The colors look good now. However, only the first page of the PDF is converted now, all others are just dropped. Why? Is the order of the arguments wrong? I've tested different orders but none with success.
However, accessing the subsequent pages directly (via file.pdf[1] etc.) works. But why doesn't it convert the full document in batch anymore?
ImageMagick version info:
Code: Select all
C:\Program files\ImageMagick\convert -density 150 -alpha Opaque file.pdf file.png
Code: Select all
C:\Program files\ImageMagick\convert -colorspace sRGB -density 150 -alpha Opaque file.pdf file.png
However, accessing the subsequent pages directly (via file.pdf[1] etc.) works. But why doesn't it convert the full document in batch anymore?
ImageMagick version info:
Code: Select all
Version: ImageMagick 6.8.1-9 2013-01-04 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: OpenMP
Delegates: bzlib freetype jp2 jpeg lcms lzma ps tiff x xml zlib