diff --git a/src/pretix/helpers/reportlab.py b/src/pretix/helpers/reportlab.py index 517c3221de..c38a6de894 100644 --- a/src/pretix/helpers/reportlab.py +++ b/src/pretix/helpers/reportlab.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU Affero General Public License along with this program. If not, see # . # -from PIL.Image import BICUBIC +from PIL.Image import Resampling from reportlab.lib.utils import ImageReader @@ -31,7 +31,7 @@ class ThumbnailingImageReader(ImageReader): height = width * self._image.size[1] / self._image.size[0] self._image.thumbnail( size=(int(width * dpi / 72), int(height * dpi / 72)), - resample=BICUBIC + resample=Resampling.BICUBIC ) self._data = None return width, height diff --git a/src/setup.py b/src/setup.py index a4c7ecaa4c..f0b798fcf8 100644 --- a/src/setup.py +++ b/src/setup.py @@ -205,7 +205,7 @@ setup( 'packaging', 'paypalrestsdk==1.13.*', 'phonenumberslite==8.12.*', - 'Pillow==9.*', + 'Pillow==9.1.*', 'protobuf==3.19.*', 'psycopg2-binary', 'pycountry',