Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade sorl-thumbnail and Pillow #2678

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

chrismytton
Copy link
Member

When we upgraded Pillow before we started seeing errors like the
following:

 IOError: cannot write mode RGBA as JPEG

As a quick workaround we just downgraded Pillow, but that created a
different error:

 IOError: encoder error -2 when writing image file

I've dug into this a bit more and it seems that the first error is fixed
in sorl-thumbnail 12.4.1. I think I tried upgrading to the latest sorl,
but that isn't compatible with Django 1.8, which is the version we're
currently on. So this change upgrades to the latest version of Pillow,
and to the latest compatible version of sorl.

Fixes #2649
Fixes #2669

When we upgraded Pillow before we started seeing errors like the
following:

     IOError: cannot write mode RGBA as JPEG

As a quick workaround we just downgraded Pillow, but that created a
different error:

     IOError: encoder error -2 when writing image file

I've dug into this a bit more and it seems that the first error is fixed
in sorl-thumbnail 12.4.1. I think I tried upgrading to the latest sorl,
but that isn't compatible with Django 1.8, which is the version we're
currently on. So this change upgrades to the latest version of Pillow,
and to the latest compatible version of sorl.
@chrismytton chrismytton merged commit eb3369e into master Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IOError: encoder error -2 when writing image file IOError: cannot write mode RGBA as JPEG
1 participant