wp-media / imagify-plugin

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

Optimized Images are reoptimized when activate/deactivate AVIF option and next-gen is regenerated #826

Closed Mai-Saad closed 8 months ago

Mai-Saad commented 9 months ago

Before submitting an issue please check that you’ve completed the following steps:

Describe the bug When activate/ reactivate avif, the bulk optimization notice displayed and optimized images are reoptimized

To Reproduce Steps to reproduce the behavior:

  1. Activate imagify , enable avif then disable it to bypass this issue
  2. Upload some images (small , medium, large) => webp created (notice the timestamp/size for optimized images)
  3. Enable AVIF => wait till avif is created
  4. notice the timestamp for optimized images => timestamp changed while size is the same
  5. deactivate AVIF
  6. notice the existing webp is regenerated and timestamp is updated for optimized images

Expected behavior No change in optimized images timestamp (as same as when click generate next-gen link)

Screenshots If applicable, add screenshots to help explain your problem. With activation: screen-capture (85).webm

Additional context Add any other context about the problem here.

Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming