wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Closes #796: Auto generation of AVIF on save #806

Closed Miraeld closed 3 months ago

Miraeld commented 3 months ago

Description

Fixes #796

Documentation

User documentation

Fix the issue related to the auto-optimization on save while AVIF is being enable.

Technical documentation

When we save the Imagify settings, we get to a callback which will check if the AVIF is enable or not. If it is, we will start optimizing the images when AVIF is missing in order to generate these AVIF versions of images.

Type of change

Checklists

Feature validation

Code style

Observability

Tabrisrp commented 3 months ago

There is some conflicts to fix after the merge of my PR to the main branch

jeawhanlee commented 3 months ago

@Miraeld Could you fix the codacy errors, they are mostly related to phpcs.

Miraeld commented 3 months ago

As noted by @Mai-Saad , if we run only this branch, we might get our file deleted.

However, merging this branch with this one fix the issue :)

So this PR requires https://github.com/wp-media/imagify-plugin/pull/807 :)