Skip to content

Commit bc33061

Browse files
committed
use new resizer URL format
1 parent 4022a32 commit bc33061

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appstore/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ def generate_image_url(img, width=None, height=None, force=False):
205205
return ''
206206
url = parent_app.config['IMAGE_ROOT']
207207
if width is not None or height is not None:
208-
if not force:
209-
url += '/fit-in'
210-
url += f"/{width or ''}x{height or ''}/filters:upscale()"
208+
if force:
209+
url += '/exact'
210+
url += f"/{width or ''}x{height or ''}"
211211
url += f"/{img}"
212212
return url
213213

0 commit comments

Comments
 (0)