• 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&#8221; 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&#8221; 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check the thumbnail settings in Admin/Settings/Media – especially the “Crop thumbnail to exact dimensions” checkbox.

    Thread Starter willhaus

    (@willhaus)

    Hey, thanks.

    That’s what I meant by messing with the thumbnail sizes in Settings>Media. I’ve changed their sizes, saved, and changed them back, as well as unchecked that box, saved, and rechecked it. I thought it might shake up the database or something, but no dice.

    Thanks, though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail problem’ is closed to new replies.