Thumbnail problem
-
Hi everyone,
I’ve got an odd problem with thumbnails that I can’t figure out. I’m using “postimage(‘thumbnail’)” on my index.php page to present square 150 x 150 thumbnails on my homepage. On my local WP install on Computer A, it works just fine. Images are render thusly in the HTML: <img width=”150″ height=”150″ src=”http://myurl.com/wordpress/wp-content/uploads/2008/12/imagename-150×150.jpg” class=”attachment-thumbnail” />
So as you can see, WP is both specifying the correct size and properly grabbing the correctly sized thumbnail image.
However, I have another install on Computer B, where the same code generates something like the following HTML: <img width=”150″ height=”135″ src=”http://myurl.com/wordpress/wp-content/uploads/2008/12/imagename.jpg” class=”attachment-thumbnail” />
So in this case, WP is specifying an aspect-ratio-retained size, and grabbing the original image and cramming it into a thumbnail-sized space to match.
Both of these local installs are checked out copies from the same Subversion repository, so I’m almost 100% positive that the WP code is identical. This leads me to think that there’s something different in the local databases that’s making Computer B point to the wrong file, but for the life of me I can’t figure out what it might be. I’ve tried changing thumbnail sizes in Settings>Media. I’ve used the Regenerate Thumbnails plugin to remake all the thumbnails. I really can’t figure out what’s making this happen.
Any ideas?
Thanks much everyone,
Willhaus
- The topic ‘Thumbnail problem’ is closed to new replies.