开发者

ImageMagick, delegate failed

开发者 https://www.devze.com 2023-03-18 22:35 出处:网络
I\'m trying to use ImageMagick to convert a bunch of PDF into JPG (or PNG) but this error keep happenings.

I'm trying to use ImageMagick to convert a bunch of PDF into JPG (or PNG) but this error keep happenings.

convert E/paginas/pdf/E2.pdf E/paginas/pdf/E2.png
convert: no decode d开发者_开发技巧elegate for this image format `/tmp/magick-qX48YuZM-00000001' @ error/constitute.c/ReadImage/532.
convert: Postscript delegate failed `E/paginas/pdf/E2.pdf':  @ error/pdf.c/ReadPDFImage/663.
convert: missing an image filename `E/paginas/pdf/E2.png' @ error/convert.c/ConvertImageCommand/3015.

Same to .jpg

PS: I'm at Ubuntu 10.10


ImageMagick 6.6.0-4 just successfully converted a PDF-1.4 file to .png format. What version are the PDFs you're using, and what version of convert?

You determine the PDF version with: head -c 8 myfile.pdf

The ImageMagick version: convert --version

What you can do to diagnose the problem is to apt-get source imagemagick, and use the source line numbers in the error messages to locate the problem, and possibly fix the program to recognize the PDF, even if you have to tell the program to ignore certain sections.

0

精彩评论

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