• Resolved petetheprogrammer

    (@petetheprogrammer)


    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!

Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Only the images which are actively part of the metadata are renamed. If you want to see what’s inside the metadata for each Media item, you can use this plugin I made: https://www.ads-software.com/plugins/media-meta/. It just does this ??

    The scaled images are handled by Media File Renamer. What happens is that the scaled image is turned into a more normal filename (without the scaled part), and the original file (which is not used in the src-set and just kept by WP just-in-case) is renamed into the normal filename + “mfrh-original” in suffix.

    But first, I think you should make sure it’s not a problem with your metadata. Easiest way to check is to upload a new file and try with that new file.

Viewing 1 replies (of 1 total)
  • The topic ‘Renaming thumbs of scaled (=WP-edited) Images’ is closed to new replies.