8

I'm trying to use this blog post to convert one pdf to a jpg, however everytime 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'm using the latest version of Wand and Python 3.4.2. The only thing I can think of is possibly a version compatibility issue.

BarFooBar
  • 1,086
  • 2
  • 13
  • 32

1 Answers1

9

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

"maybe then some libraries missing. do you use linux/windows/mac? check what is required there for pdfs? ghostscript maybe? "

Marcin
  • 215,873
  • 14
  • 235
  • 294
  • 1
    In case this helps somebody else: I got the same error message, installed imagemagick with ghostscript bindings, reinstalled wand and *still* got the error along with a message complaining about X11. After I installed the latest XQuartz everything worked. This was on OS X 10.0.4 – Robin Jul 31 '15 at 14:28