mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Fix further Pillow compatibility issues
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
||||||
# <https://www.gnu.org/licenses/>.
|
# <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
from PIL.Image import BICUBIC
|
from PIL.Image import Resampling
|
||||||
from reportlab.lib.utils import ImageReader
|
from reportlab.lib.utils import ImageReader
|
||||||
|
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ class ThumbnailingImageReader(ImageReader):
|
|||||||
height = width * self._image.size[1] / self._image.size[0]
|
height = width * self._image.size[1] / self._image.size[0]
|
||||||
self._image.thumbnail(
|
self._image.thumbnail(
|
||||||
size=(int(width * dpi / 72), int(height * dpi / 72)),
|
size=(int(width * dpi / 72), int(height * dpi / 72)),
|
||||||
resample=BICUBIC
|
resample=Resampling.BICUBIC
|
||||||
)
|
)
|
||||||
self._data = None
|
self._data = None
|
||||||
return width, height
|
return width, height
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ setup(
|
|||||||
'packaging',
|
'packaging',
|
||||||
'paypalrestsdk==1.13.*',
|
'paypalrestsdk==1.13.*',
|
||||||
'phonenumberslite==8.12.*',
|
'phonenumberslite==8.12.*',
|
||||||
'Pillow==9.*',
|
'Pillow==9.1.*',
|
||||||
'protobuf==3.19.*',
|
'protobuf==3.19.*',
|
||||||
'psycopg2-binary',
|
'psycopg2-binary',
|
||||||
'pycountry',
|
'pycountry',
|
||||||
|
|||||||
Reference in New Issue
Block a user