wp-media / imagify-plugin

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

Optimize missing thumbnail sometimes isnot working for custom size #894

Open Mai-Saad opened 3 months ago

Mai-Saad commented 3 months ago

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

Describe the bug When a custom thumbnail is set using the following filter in the active theme, when clicking optimize 1 missing thumbnail is not working with some images

add_action( 'after_setup_theme', function() {
add_image_size( '200', 200, 200 );
} );

To Reproduce Steps to reproduce the behavior:

  1. Use the filter above
  2. Upload an image like attached
  3. Click optimize 1 missing thumbnail link in the media library list for the optimized image
  4. Nothing happens and the link is still there 360_F_289306269_rJ04x9o9Dbv8zHcImf9kRZA08bVCimIP tablet_11971515051363428

Expected behavior The link 'optimize 1 missing thumbnail' gets hidden and optimize the needed thumbnail or show notice if something is wrong (please refer to @wp-media/product to confirm the expected)

Screenshots Screenshot from 2024-08-14 17-01-26

Additional context

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