ImageMagick wand not recognize pdf image?

I try to use this blog post to convert one PDF to jpg, however every time I try to run this simple script I get this exception wand.exceptions.WandError: wand contains no images MagickWand-56' @ error/magick-image.c/MagickWriteImage/13001

 from wand.image import Image with Image(filename="myFile.pdf") as img: img.save(filename="myFile.png") 

I am using the latest version of Wand and Python 3.4.2. The only thing I can think of is probably a version compatibility issue.

+6
source share
1 answer

So, to close the question, the problem in the ghostscript library is missing on mac, as indicated in my comment above:

"maybe some libraries are missing then. Are you using linux / windows / mac? check what is required for the PDF files there? maybe ghostscript?"

+7
source

Source: https://habr.com/ru/post/980285/


All Articles