小编MGH*_*MGH的帖子

如何将 wand.image.Image 转换为 PIL.Image?

我在这个问题上花了一整天,但在堆栈溢出中没有看到答案!

我试过这个,但没有用:

    >> pil_image = Image.frombytes('RGBA', wand_image.size, wand_image.make_blob(format='png'), 'raw')

    ValueError: not enough image data
Run Code Online (Sandbox Code Playgroud)

我很欣赏每一个解决方案。

python type-conversion python-imaging-library wand

4
推荐指数
2
解决办法
2126
查看次数