diff --git a/appicongen/imaging.py b/appicongen/imaging.py index 8059010..c66798f 100644 --- a/appicongen/imaging.py +++ b/appicongen/imaging.py @@ -6,7 +6,7 @@ from tempfile import NamedTemporaryFile from typing import Optional -RESAMPLER = Image.LANCZOS +RESAMPLER = Image.Resampling.LANCZOS RESIZE_MODES = { 'fit': lambda img, size, bg: ImageOps.fit(img, size=size, method=RESAMPLER), 'pad': lambda img, size, bg: ImageOps.pad(img, size=size, color=bg, method=RESAMPLER),