mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
update: use proper name for PIL image filter ANTIALIAS -> LANCZOS
ANTIALIAS was made an alias of LANCZOS in 2.7.0: https://pillow.readthedocs.io/en/stable/releasenotes/2.7.0.html#antialias-renamed-to-lanczos The ANTIALIAS alias was removed in Pillow 10.0.0: https://pillow.readthedocs.io/en/stable/deprecations.html
This commit is contained in:
parent
3db90b65fb
commit
132e953c8c
1 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ def resize_icon(iconpath, density):
|
|||
|
||||
if any(length > size for length in im.size):
|
||||
oldsize = im.size
|
||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
||||
im.thumbnail((size, size), Image.LANCZOS)
|
||||
logging.debug("%s was too large at %s - new size is %s" % (
|
||||
iconpath, oldsize, im.size))
|
||||
im.save(iconpath, "PNG", optimize=True,
|
||||
|
|
@ -1778,7 +1778,7 @@ def fill_missing_icon_densities(empty_densities, icon_filename, apk, repo_dir):
|
|||
|
||||
size = dpi_to_px(density)
|
||||
|
||||
im.thumbnail((size, size), Image.ANTIALIAS)
|
||||
im.thumbnail((size, size), Image.LANCZOS)
|
||||
im.save(icon_path, "PNG", optimize=True,
|
||||
pnginfo=BLANK_PNG_INFO, icc_profile=None)
|
||||
empty_densities.remove(density)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue