Open iurisilvio opened 7 years ago
https://github.com/python-pillow/Pillow/issues/2609
My jpeg image is loaded with image.mode == 'L'. The resize function override this mode to RGBA and it breaks Pillow.
image.mode == 'L'
resize
RGBA
https://github.com/mikeboers/Flask-Images/blob/master/flask_images/core.py#L225
I just commented this mode override and it worked. I don't know why this mode change is there.
mode
https://github.com/python-pillow/Pillow/issues/2609
My jpeg image is loaded with
image.mode == 'L'
. Theresize
function override this mode toRGBA
and it breaks Pillow.https://github.com/mikeboers/Flask-Images/blob/master/flask_images/core.py#L225
I just commented this
mode
override and it worked. I don't know why this mode change is there.