Renaming thumbs of scaled (=WP-edited) Images
-
Hello!
Thank you very much for your plugin. It’s very helpful and already saved me a ton of work!
I faced some erratic behaviour though. Most images were renamed fine, including their thumnails. But with some images only the original seemed to be renamed, with the thumbnails keeping their old name.
After a while of testing I found a possible reason: If you edit an image within WordPress (e.g. scale it), the system adds a new copy with some code appended to the filename (e.g. “…-scaled93847572.jpg” or “…e18293847.jpg”. And when I change the title of one of these images, only this appended version is renamed. The original and it’s thumbnails remain as they were. Unfortunately I don’t know any way of reaching and renaming those files, as the media library only ever lists the edited version.
The result of all that is not dramatic, as somehow WordPress still knows to connect the renamed files to it’s thumbnails. But in the frontend the “srcset” attribut gets a bit messy (with different file names), as does the upload folder.
Does all this make sense? Is there a way to avoid this behaviour?
Please let me know if you need additional information and/or logs.Thank you again and have a nice day!
- The topic ‘Renaming thumbs of scaled (=WP-edited) Images’ is closed to new replies.