我正在尝试使用此博客文章将一个 pdf 转换为 jpg,但是每次我尝试运行这个简单的脚本时,我都会得到这个异常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")
我正在使用最新版本的 Wand 和 Python 3.4.2。我唯一能想到的可能是版本兼容性问题。