Issues with srcset, orphaned thumbnails, Post Thumbnail Editor
-
Hi, I’m having multiple issues with the way MLP works with thumbnails in the database. I’m able to work around them, but it causes me headaches if I don’t follow a certain procedure.
1. When new images are uploaded via MLP and then shown on a page or post, the srcset attribute is not properly generated. When the “Regenerate Thumbnails” command is used, srcset then works correctly on the image. (By the way, there’s a typo on “Thumnails”.)
2. When images are renamed or moved to another folder, the original thumbnails stay in the original location, orphaned from the database, while new thumbs are generated for the new name or new location. Instead, in the case of renaming, the original thumbs should be renamed, not regenerated; and if an image is being moved, the original thumbs should follow the primary image to the new location – either moved or copied according to user command – again, not regenerated. If the Sync command is used in a folder after an image is moved out or renamed, each orphaned thumbnail is added to the database as its own image, and new thumbnails are regenerated for each of those added images. It’s really annoying.
3. I use the Post Thumbnail Editor plugin to customize the crops of many of my thumbnails. When PTE saves the updated thumbnail, it saves as a different filename with a 10-digit number appended to the end (the old version is automatically deleted). WP has no trouble finding and displaying these thumbnails with new filenames, but MLP does not recognize them. So, when I use Regenerate Thumbnails, the PTE-generated files still exist and are orphaned (I would expect them to be deleted or replaced with the newly generated thumbs). That means when I’m adding new images via MLP, I have to be sure to Regenerate Thumbnails first so srcset works, then do my edits with PTE. If I use the MLP Sync command after I’ve used PTE on any image within a given folder, I get a big mess: the thumbnail paths for PTE-edited images are messed up, the PTE-edited thumbs are added as original images with their own thumbnails, and I have a bunch of useless files to clean up. If I move, copy or rename images with PTE-edited thumbnails, I lose that work because the thumbnails are always regenerated instead of moved/copied/renamed along with the original image size (and as noted before, if I move them, I’m once again left with orphaned thumbnails).
The topic ‘Issues with srcset, orphaned thumbnails, Post Thumbnail Editor’ is closed to new replies.