mikeboers / Flask-Images

On-demand resizing of images for Flask applications.
https://mikeboers.github.io/Flask-Images/
BSD 3-Clause "New" or "Revised" License
81 stars 43 forks source link

IOError: cannot write mode RGBA as JPEG #48

Closed erwinyusrizal closed 6 years ago

erwinyusrizal commented 6 years ago

Hi, I have issue regarding the RGBA image, seems Pillow bug, below the errors

File "flask_images/core.py", line 395, in handle_request
    image.save(cache_file, format, quality=quality)
  File "PIL/Image.py", line 1930, in save
    save_handler(self, fp, filename)
  File "PIL/JpegImagePlugin.py", line 607, in _save
    raise IOError("cannot write mode %s as JPEG" % im.mode)
erwinyusrizal commented 6 years ago

Fixed #44