开发者

ImageMagick PDF to JPEG conversion results in green square where image should be

开发者 https://www.devze.com 2022-12-14 04:14 出处:网络
I\'m attempting to convert a PDF to a JPEG using ImageMagick. The PDF: baby_aRCWTU.pdf The command: convert -density 260 -profile \'SWOP.icc\' -profile \'sRGB.icm\' \'baby_aRCWTU.pdf\' \'baby_aRCWTU.j

I'm attempting to convert a PDF to a JPEG using ImageMagick.

The PDF: baby_aRCWTU.pdf

The command: convert -density 260 -profile 'SWOP.icc' -profile 'sRGB.icm' 'baby_aRCWTU.pdf' 'baby_aRCWTU.jpg'

The resulting JPEG: baby_aRCWTU.jpg

As you can see, the text is rendered nicely, but the embedded image shows up as a green square. Any ideas? This occurs with and without the colour profiles.

edit: reposted due to broke开发者_如何学运维n links


On a site we convert hundreds of PDF's on a daily basis where we need to create JPGs and we found it only reliable to convert the PDF's to postscript first.

We use the "pdftops" command, try

pdftops baby_aRCWTU.pdf baby_aRCWTU.ps

then your convert command above, but on the ps. Works for me, the image is then included.

0

精彩评论

暂无评论...
验证码 换一张
取 消