I’ve run into the same issue as viscocity. I restored a WordPress 2.6.3 site locally to work on theme and realized this issue with image sizing with gallery shortcode.
I did go through database and fix all the different URLs and file paths. Also tried importing over the existing system but it didn’t make any difference. Import has some issues of its own anyway.
I notice the size attributes and the name of the thumbnail or medium image isn’t referenced in the generated html after a restore.
Instead of img src=”https://www.whatever.com/wp-content/uploads/2008/09/something-150×150.jpg” width=”150″ height=”150″ class=”attachment-thumbnail”,
you just get img src=”https://www.whatever.com/wp-content/uploads/2008/09/something.jpg” class=”attachment-thumbnail”.
I poked around in media.php trying to figure out what was going on, but I guess I’m not quite sharp enough to figure it out.
It would be nice to understand this because moving a site around like this is a pretty common thing to do.