Before submitting an issue please check that you’ve completed the following steps:
Made sure you’re on the latest version =>2.1.3.1
Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug
If we uploaded small image that is already optimized then delete webp version, optimize btn is displayed instead of just change delete link to generate link
To Reproduce
Steps to reproduce the behavior:
WebP is enabled on trunk or on AVIF branch, the AVIF is off
upload small image like the one attached
check media library
click delete webp image or delete Next-Gen link => optimize btn displayed
Expected behavior
When click delete webp or next-gen, switch the link to generate webp or next-gen (as we didn't delete optimized images)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
on trunk, delete webp isnot displayed for large image
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
When click on delete link, generate link displayed after deletion
When click on generate link, delete link is displayed after generation
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug If we uploaded small image that is already optimized then delete webp version, optimize btn is displayed instead of just change delete link to generate link
To Reproduce Steps to reproduce the behavior:
Expected behavior When click delete webp or next-gen, switch the link to generate webp or next-gen (as we didn't delete optimized images)
Screenshots If applicable, add screenshots to help explain your problem.
![Screenshot from 2024-02-23 11-09-23](https://github.com/wp-media/imagify-plugin/assets/76941962/df0c8866-96f9-47cb-90a9-3c89da3aa206)
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