wp-media / imagify-plugin

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

Fix generation of next gen images with first settings save of avif option #834

Closed wordpressfan closed 8 months ago

wordpressfan commented 8 months ago

Description

Run next gen generation for the first settings save and add few comments in code to explain what is going on there.

Fixes #825

Documentation

User documentation

This will trigger generating next generation images when enabling the avif option and rewrite rules.

Technical documentation

Explain how this code works. Diagram & drawings are welcomed.

Type of change

Delete options that are not relevant.

New dependencies

List any new dependencies that are required for this change.

Risks

List possible performance & security issues or risks, and explain how they have been mitigated.

Checklists

Feature validation

Documentation

Code style

Observability

Risks

MathieuLamiot commented 8 months ago

Don't block the PR for this, but it could be nice to update the doc string or comment the method here to clearly state:

Mai-Saad commented 8 months ago

Now AVIF is created for 1st activation. with the following note:

piotrbak commented 8 months ago

@Mai-Saad This behaviour is acceptable for the initial 2.2

piotrbak commented 8 months ago

@Mai-Saad @wordpressfan I can see that the PR is still a draft/in-progress. Where are we with this one?

wordpressfan commented 8 months ago

I think we are fine here based on the comments above but I requested a review from @Mai-Saad @Tabrisrp and @MathieuLamiot to add their review.