Title: Rounding Error
Last modified: August 22, 2016

---

# Rounding Error

 *  Resolved [Lauren @ Once Coupled](https://wordpress.org/support/users/laurenng/)
 * (@laurenng)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/)
 * I’ve recently run this plugin and am now seeing missing images. Originally, the
   images were name-682×1024, but they’ve been regenerated as name-683×1024 although
   no changes have been made to the media settings.
 * This could be related to a WordPress issue, but I thought that was fixed too 
   far back for it to only be causing a problem now: [https://core.trac.wordpress.org/ticket/18532](https://core.trac.wordpress.org/ticket/18532).
 * Any thoughts or fixes on resolving the now-missing images?
 * [https://wordpress.org/plugins/force-regenerate-thumbnails/](https://wordpress.org/plugins/force-regenerate-thumbnails/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [migueleste](https://wordpress.org/support/users/migueleste/)
 * (@migueleste)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829399)
 * 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
 *  [migueleste](https://wordpress.org/support/users/migueleste/)
 * (@migueleste)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829400)
 * 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
 *  [migueleste](https://wordpress.org/support/users/migueleste/)
 * (@migueleste)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829403)
 * 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/](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
 *  Thread Starter [Lauren @ Once Coupled](https://wordpress.org/support/users/laurenng/)
 * (@laurenng)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829410)
 * Hey Miguel,
 * I was actually coming back here to report the same thing.
    1. I pulled an old version of /wp-includes/media.php
    2. Uploaded it to the site in question
    3. Ran a different regeneration plugin (that doesn’t delete old sizes, since I 
       figured some new images might be deleted in the )
    4. 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
 *  [migueleste](https://wordpress.org/support/users/migueleste/)
 * (@migueleste)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829413)
 * 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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Rounding Error’ is closed to new replies.

 * ![](https://ps.w.org/force-regenerate-thumbnails/assets/icon-256x256.jpg?rev=
   2816275)
 * [Force Regenerate Thumbnails](https://wordpress.org/plugins/force-regenerate-thumbnails/)
 * [Support Threads](https://wordpress.org/support/plugin/force-regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/force-regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-regenerate-thumbnails/reviews/)

## Tags

 * [rounding error](https://wordpress.org/support/topic-tag/rounding-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [migueleste](https://wordpress.org/support/users/migueleste/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/rounding-error/#post-5829413)
 * Status: resolved