I spent whole day on this problem and did not see answer in stack overflow!
I tried this but did not work:
>> pil_image = Image.frombytes('RGBA', wand_image.size, wand_image.make_blob(format='png'), 'raw')
ValueError: not enough image data
I appreciate every solution.
This doesn't involve numpy:
pil_image = PIL.Image.open(io.BytesIO(wand_image.make_blob("png"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With