Issue when thumbnail images are regenerated
-
Hi,
I found a few issues with this plugin. Our plugin Media Library Folders includes the ability to regenerate thumbnails for a individual images or for all images on a site. When reSmush.it is running on a site, the thumbnail files are regenerated but there is a problem when getting the thumbnail images from WordPress using the wp_get_attachment_image(). Normally the function will return HTML like this,
<img width="150" height="150" src="https://localhost/testsite/wp-content/uploads/2017/01/test-image-150x150.jpg" class="attachment-thumbnail size-thumbnail" alt="" />
but after regenerating the thumbnails this function will return HTML like this:
<img width="1" height="1" src="https://localhost/testsite/wp-content/uploads/2017/01/test-image.jpg" class="attachment-thumbnail size-thumbnail" alt="" />
Somehow the thumbnail sizes are not updated correctly.
Also, I noticed that the plugin generates a few PHP warnings when WordPress debugging is turned on: Undefined variable: files_not_found and Undefined index: dirname.
- The topic ‘Issue when thumbnail images are regenerated’ is closed to new replies.