从.pdf到.jpg的图像转换未显示完整图像

时间:2012-05-01 04:39:05

标签: php imagemagick

我在我的服务器上的pdf文件上使用imagemagick,转换正常但是当我查看转换的jpb时,只显示pdf第一页中的一些项目。然而,它缺少背面的完整图像。

/usr/local/bin/convert -size 250x350 testimage.pdf[0] testimage.jpg

这是我用来将pdf转换为jpg的PHP代码。

这应该是Correct image

的样子

但是它看起来像enter image description here

1 个答案:

答案 0 :(得分:0)

看起来像是一层尝试:

/usr/local/bin/convert testimage.pdf[0] -flatten testimage.jpg 

为什么代码中有-size 250x350?

相关问题