wp-media / imagify-plugin

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

Delete/Generate Next-Gen in media library isnot working #792

Closed Mai-Saad closed 3 months ago

Mai-Saad commented 4 months ago

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

Describe the bug Clicking delete Next-Gen images or Generate Next-Gen images isnot working (with/without create AVIF enabled)

To Reproduce Steps to reproduce the behavior:

  1. Enable AVIF
  2. In the media library click ' Generate Next-Gen' link for any image not having AVIF (if there were AVIF, delete it in upload then refresh the media library page or simply click 'Delete Next-Gen images'

Expected behavior 1- Clicking Generate Next-Gen images => generate AVIF/WebP based on enabled feature 2- Clicking Delete Next-Gen images => delete both webp and AVIF independent on which is enabled

Screenshots If applicable, add screenshots to help explain your problem.

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

  1. Generate Next-Gen images link is displayed if Next-Gen images arenot generated
  2. Delete Next-Gen images link is displed if Next-Gen images are already generated
  3. Links are functional i.e deleting or generating the Next-Gen images
  4. Link Generate/delete Next-Gen is there in the media library list and in the edit image
  5. Next-Gen images is either AVIF or WebP or both
Mai-Saad commented 3 months ago