WordPress.org

Support

Support » How-To and Troubleshooting » Images being stretched

Images being stretched

  • Hello.

    My CSS calls for images to be 300×250. The main page and the post page will both display them at that size. I am uploading pictures at that size.

    When I look at the main or post page, the image is skewed. It’s been stretched, the top and bottom are cut off. The image properties tells me’300px × 198px (scaled to 300px × 250px)’

    What am I missing to stop this from happening?

    Thank you.

    Sb.

Viewing 15 replies - 1 through 15 (of 15 total)
  • jasonpaulweber

    @jasonpaulweber

    Member

    Can you leave a link?

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    Looks like the css is working. What are the settings in dashboard>settings>media?

    In trying to do it myself, all were changed to 300×250.

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    Try setting all to 0.

    Same thing.

    I’m still not able to get past this. Anyone else have any ideas?

    Thanks for your time.

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    Onto the normal debug.
    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    – resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Also, if you could post a link to one of the images I will see what happens when I place it.

    Ok, Thank you for the response.

    I did deactivate all plug-ins. Uploaded a new image at 300×250, and it cut off the top and bottom.

    To test the images correctly, I have just been grabbing pix off Google that match my size. Using this one.. http://www.newyorkschools.com/images/nys-300×250.jpg. From that, I get the ol’ 300px × 198px (scaled to 300px × 250px)

    Twenty Eleven doesn’t display the image with my post. I’m going to go read how to do that, see if I can make it happen, then I will update this post further.

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    Can we see your site with twentyeleven and no plugins?

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    I thought I would see some images.

    Validation show 214 errors. Was your blog imported from somewhere?

    [edit] There are multiple entries of this </header><!-- .entry-header --> and this </footer><!-- .entry-meta --> that are causing errors. That is why I wondered if you imported this blog and have a database problem. Don’t see how it contributes to the image problem though.

    Here’s how this all came to be.

    I hired someone to write me a theme. He provided that, and I was to install it myself. The theme did do an import – some test products and categories.

    The WP install was fresh, uploaded via FTP, not a Fantastico install. After that, I upped the theme, and did the import. The plugins running were sent with the theme.

    I’ve run into this issue and fixed it by fixing the functions.php document for that specific thumbnail. The easier way would be to look at what the upload size is under settings-> media. If its a custom theme then it’s most likely having to do with the add_post_thumbnail( ) hook in the page template or functions.php file

    Thank you, checking into that now.

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Agreed, look for add_image_size() in your theme’s functions.php file somewhere. It may be setting incorrect sizes.

    Also note that changing the settings of sizes doesn’t magically resize all the old images. Images stay at their sizes. Only newly uploaded images will be affected by the image size settings.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Images being stretched’ is closed to new replies.