ImageMagick PDF到JPEG转换结果为绿色方块,图像应该是 [英] ImageMagick PDF to JPEG conversion results in green square where image should be

查看:144
本文介绍了ImageMagick PDF到JPEG转换结果为绿色方块,图像应该是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用ImageMagick将PDF转换为JPEG。

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

PDF:
baby_aRCWTU.pdf

The PDF: baby_aRCWTU.pdf

命令:
convert -density 260 -profile'SWOP.icc'-profile'sRGB.icm''baby_aRCWTU.pdf''baby_aRCWTU.jpg'

结果JPEG:
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 broken links

推荐答案

在一个网站上,我们每天都会转换数百个PDF,我们需要创建JPG,我们发现只有将PDF转换为postscript才可靠。

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.

我们使用pdftops命令,尝试

We use the "pdftops" command, try

pdftops baby_aRCWTU.pdf baby_aRCWTU.ps

然后你的转换命令在上面,但在ps上。对我有用,然后包含图像。

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

这篇关于ImageMagick PDF到JPEG转换结果为绿色方块,图像应该是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆