Skip to content

Commit

Permalink
Migrate deprecate resampler
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Aug 5, 2024
1 parent 69db975 commit abea5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appicongen/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit abea5c8

Please sign in to comment.