mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Merge branch 'fix-ci' into 'master'
two small fixes for failing GitLab CI jobs See merge request fdroid/fdroidserver!1376
This commit is contained in:
commit
61925ac4f4
@ -170,6 +170,8 @@ arch_pip_install:
|
||||
- master@fdroid/fdroidserver
|
||||
script:
|
||||
- pacman --sync --sysupgrade --refresh --noconfirm gcc git grep python-pip python-virtualenv python-wheel tar
|
||||
- python -m venv venv
|
||||
- source venv/bin/activate
|
||||
- pip install -e .[test]
|
||||
- fdroid
|
||||
- fdroid readmeta
|
||||
|
@ -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…
Reference in New Issue
Block a user