We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baad0f1 commit 70b606dCopy full SHA for 70b606d
backend/flask/app/imgproxy.py
@@ -16,12 +16,11 @@ def generate_url(original_url):
16
# You can trim padding spaces to get good-looking url
17
encoded_url = '/'.join(textwrap.wrap(encoded_url, 16))
18
19
- path = '/{resize}/{width}/{height}/{gravity}/{enlarge}/{encoded_url}'.format(
+ path = '/resize:{resizing_type}:{width}:{height}:{enlarge}/{encoded_url}'.format(
20
encoded_url=encoded_url,
21
- resize='fit',
+ resizing_type='fit',
22
width=100,
23
height=100,
24
- gravity='ce',
25
enlarge=0,
26
).encode()
27
digest = hmac.new(key, msg=salt+path, digestmod=hashlib.sha256).digest()
0 commit comments