Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Pass 'c_limit' param to hi_def URL #63

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
v1.4.2, 2024-12-19: Add 'c_limit' to hi-def cloudinary urls
v1.4.1, 2024-10-30: Switch to using native lazyloading only (without lazysizes wrapping div)
v1.3.1, 2020-09-24: Make e_sharpen optional
v1.3.0, 2020-09-24: Add e_sharpen to images
Expand Down
2 changes: 1 addition & 1 deletion canonicalwebteam/templates/image_template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img
src="https://res.cloudinary.com/canonical/image/fetch/{{ std_def_cloudinary_options }}/{{ url }}"
{%- if hi_def %}
srcset="https://res.cloudinary.com/canonical/image/fetch/{{ hi_def_cloudinary_options }}/{{ url }} 2x"
srcset="https://res.cloudinary.com/canonical/image/fetch/c_limit,{{ hi_def_cloudinary_options }}/{{ url }} 2x"
{%- endif %}
alt="{{ alt }}"
width="{{ width }}"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="canonicalwebteam.image-template",
version="1.4.1",
version="1.4.2",
author="Canonical webteam",
author_email="[email protected]",
url=(
Expand Down
Loading