From eb3369ed081c7395fcd559e715056e367f9dd595 Mon Sep 17 00:00:00 2001 From: Chris Mytton Date: Fri, 6 Sep 2019 13:04:27 +0100 Subject: [PATCH] Upgrade sorl-thumbnail and Pillow 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. --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 7ca926cfa8..417a323966 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ ### General useful bits py-bcrypt==0.4 PyYAML==5.1 -Pillow==3.2.0 +Pillow==6.1.0 ### Database drivers psycopg2==2.8.2 @@ -28,7 +28,7 @@ djangorestframework==3.3.2 django-registration-defaults==0.3 ### Pombola dependencies -sorl-thumbnail==12.3 +sorl-thumbnail==12.4.1 django_date_extensions==0.1dev django-ajax-selects==1.4.2 django-autocomplete-light==2.3.3