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

AVIF support for wagtail #10657

Merged
merged 4 commits into from Jul 14, 2023
Merged

AVIF support for wagtail #10657

merged 4 commits into from Jul 14, 2023

Conversation

salty-ivy
Copy link
Member

Fixes #10486 (WIP)

Wagtail Counter part to support AVIF

Willow counter part

Issue: wagtail/Willow#111
PR: wagtail/Willow#115

Cc: @mrchrisadams @thibaudcolas @zerolab @laymonage

  • Do the tests still pass?[^1]
  • Does the code comply with the style guide?
    • Run make lint from the Wagtail root.
  • For Python changes: Have you added tests to cover the new/fixed behaviour?
  • For front-end changes: Did you test on all of Wagtail’s supported environments?[^2]
    • Please list the exact browser and operating system versions you tested:
    • Please list which assistive technologies [^3] you tested:
  • For new features: Has the documentation been updated accordingly?

@squash-labs
Copy link

squash-labs bot commented Jul 10, 2023

Manage this branch in Squash

Test this branch here: https://salty-ivyavif-support-bhqxa.squash.io

Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a solid start, @salty-ivy.

Left a number of suggestions

wagtail/images/models.py Show resolved Hide resolved
wagtail/images/tests/test_image_operations.py Outdated Show resolved Hide resolved
wagtail/images/models.py Outdated Show resolved Hide resolved
wagtail/images/models.py Show resolved Hide resolved
wagtail/images/models.py Outdated Show resolved Hide resolved
wagtail/images/tests/test_image_operations.py Show resolved Hide resolved
@zerolab zerolab added this to the 5.1 milestone Jul 12, 2023
@salty-ivy
Copy link
Member Author

typo at.

def test_jpeg_quality_filter_overrides_setting(self):

wagtail/images/models.py Outdated Show resolved Hide resolved
wagtail/images/fields.py Outdated Show resolved Hide resolved
@salty-ivy salty-ivy requested a review from zerolab July 13, 2023 16:28
@salty-ivy salty-ivy marked this pull request as ready for review July 13, 2023 16:31
docs/topics/images.md Outdated Show resolved Hide resolved
@salty-ivy salty-ivy requested a review from zerolab July 13, 2023 17:47
zerolab added a commit to salty-ivy/wagtail that referenced this pull request Jul 13, 2023
zerolab added a commit to salty-ivy/wagtail that referenced this pull request Jul 13, 2023
zerolab added a commit to salty-ivy/wagtail that referenced this pull request Jul 13, 2023
Copy link
Contributor

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @salty-ivy

This currently depends on a decision on #10676 as Willow 1.6 drops Python 3.7

@@ -36,13 +36,19 @@ The `boost` option on `SearchField`, to increase the ranking of search results t

### Extend Stimulus adoption

As part of tackling Wagtail’s technical debt and improving [CSP compatibility]([Title](https://github.com/wagtail/wagtail/issues/1288)), we have continued extending our usage of Stimulus, based on the plans laid out in [RFC 78: Adopt Stimulus](https://github.com/wagtail/rfcs/pull/78).
As part of tackling Wagtail’s technical debt and improving [CSP compatibility](https://github.com/wagtail/wagtail/issues/1288), we have continued extending our usage of Stimulus, based on the plans laid out in [RFC 78: Adopt Stimulus](https://github.com/wagtail/rfcs/pull/78).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 I have disabled my "smart link paste" IDE feature, thanks for catching this.

thibaudcolas pushed a commit to salty-ivy/wagtail that referenced this pull request Jul 14, 2023
salty-ivy and others added 4 commits July 14, 2023 16:17
Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
This is the value most used, and is the default in Willow too

Co-Authored-By: Aman Pandey <74553951+salty-ivy@users.noreply.github.com>
@thibaudcolas thibaudcolas merged commit 1a4e5dd into wagtail:main Jul 14, 2023
11 of 15 checks passed
@thibaudcolas
Copy link
Member

And it’s in! I can’t think of anything better to end the week on ☺️ We’ll be talking about this and rolling it out across the ecosystem for a while… onwards!

@salty-ivy 🫡

Sully and Mike from Monster Inc give a thumbs up

@thibaudcolas thibaudcolas added type:Enhancement component:Images GSOC Google Summer of Code 🚀 Performance Sustainability Things relating to UN sustainable development goals, in particular climate action labels Jul 14, 2023
@salty-ivy
Copy link
Member Author

salty-ivy commented Jul 14, 2023

It was amazing bringing this in, special thanks to @zerolab

@lb-
Copy link
Member

lb- commented Jul 14, 2023

Awesome stuff @salty-ivy and all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:Images GSOC Google Summer of Code 🚀 Performance Sustainability Things relating to UN sustainable development goals, in particular climate action type:Enhancement
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

AVIF support in Wagtail
4 participants