Closed remyperona closed 8 months ago
@Tabrisrp Thanks for the PR. Is there any snippet we can use to control / overwrite next-gen status of image(s) so we can easily validate possible scenarios here?
I added a method to automatically clear the counter transient when enabling/disabling convert_to_avif
@Tabrisrp Thanks for the PR.
note: without step 3, it will work fine
Description
This PR updates the code related to storing and using the data for optimized medias without next-gen versions (depending on option selected, either WebP or AVIF).
Technical documentation
The logic remains the same, but makes use of the new method to get the list of optimized medias without next-gen.
It also removes no longer used methods that were only accounting for WebP.
Type of change
Checklists
Feature validation
Code style