IM generating black screen when converting few PDFs to JPEG
Posted: 2013-11-19T11:34:32-07:00
We have upgraded ImageMagick software to the latest version and now we are having problem while converting few PDFs to JPEGs, the new version of IM is generating weird JPGs. For the same PDF, we are getting good JPEG in old version of ImageMagick (6.5.4-7).
Have a look at the below picture which shows the comparison to see the JPEG generated from new IM (black picture) and old IM (white color with text)
Looks like ImageMagick is using Ghostscript to do conversions for PDFs. Current version of Ghostscript on my machine is:
$ ghostscript -version
GPL Ghostscript 8.70 (2009-07-31)
&
ImageMagick Version: ImageMagick 6.8.7-5 Q16 x86_64
OS details
$ uname -a
Linux 2.6.32-279.9.1.el6.x86_64
PDF file has been placed at - https://www.dropbox.com/s/495nk62vwx0bf ... 13_PDF.pdf
The command that we are trying to convert the PDF to JPEG is
convert -resize 800X600 /IM/input/11152013_PDF.pdf[0] -profile "/ICCProfiles/Recommended/sRGB Color Space Profile.icm" /IM/output/11152013_PDF.jpg
Had tried the command without applying the profile and still we are getting the JPEG as a black screen.
Is it the upgrade of ImageMagick causing the issue or else the newer version of IM is not compatibile with Ghostscript that we have?
Have a look at the below picture which shows the comparison to see the JPEG generated from new IM (black picture) and old IM (white color with text)
Looks like ImageMagick is using Ghostscript to do conversions for PDFs. Current version of Ghostscript on my machine is:
$ ghostscript -version
GPL Ghostscript 8.70 (2009-07-31)
&
ImageMagick Version: ImageMagick 6.8.7-5 Q16 x86_64
OS details
$ uname -a
Linux 2.6.32-279.9.1.el6.x86_64
PDF file has been placed at - https://www.dropbox.com/s/495nk62vwx0bf ... 13_PDF.pdf
The command that we are trying to convert the PDF to JPEG is
convert -resize 800X600 /IM/input/11152013_PDF.pdf[0] -profile "/ICCProfiles/Recommended/sRGB Color Space Profile.icm" /IM/output/11152013_PDF.jpg
Had tried the command without applying the profile and still we are getting the JPEG as a black screen.
Is it the upgrade of ImageMagick causing the issue or else the newer version of IM is not compatibile with Ghostscript that we have?