ImageMagick魔杖无法识别pdf图像?

2024-10-01 15:34:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用this博客文章将一个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和python3.4.2。我唯一能想到的可能是版本兼容性问题。在


Tags: image版本脚本imgpdf文章wandfilename

热门问题