Hi,
I’m going through a heavy website migration and realized now that i also have this problem.
All filenames are off by one pixel, which looks like a rounding error… Meaning I would have to go and fix a few thousand posts manually.
Previous Thumbnails were generated with wordpress 3.9.3, so not too old.
If someone has any clue on how to solve this without going through every post and do it manually, I would be eternally grateful.
cheers,
miguel
Crap.. I’ve checked the ticket mentioned by laurenmg and the rounding error apparently was “fixed” in v4.1.
Apparently nobody thought about backward compatibility.
turned a small problem into a big mess.
Miguel
Just to let you know That I’ve been able to recover the thumbnails with the correct file names.
Since the update happened in v4.1 I got the files from version 4.0.1 (https://wordpress.org/download/release-archive/).
there look for media.php under wp-includes/.
Replaced current media.php for the old one and run force regenerate again.
Then replacing back media.php for the current version.
recovered everything.
The problem is that, in the future, I can’t delete these thumbnails ever again, because it’s a bad idea to keep going back and using the old media.php file.
cheers,
miguel
Hey Miguel,
I was actually coming back here to report the same thing.
- I pulled an old version of /wp-includes/media.php
- Uploaded it to the site in question
- Ran a different regeneration plugin (that doesn’t delete old sizes, since I figured some new images might be deleted in the )
- And uploaded the original media file once more.
Now I’ve made a note NOT to use this plugin for any sites that had media uploaded before 2015… I’ll just have to keep all those old images sizes.
Best,
Lauren
Lauren,
Forgot to thank you for locating and sharing the relevant track issue.
I confess it would be the last thing I would think of…
cheers,
miguel