WordPress.org

Ready to get started?Download WordPress

Forums

Images being stretched (16 posts)

  1. saintblue
    Member
    Posted 9 months ago #

    Hello.

    My CSS calls for images to be 300x250. 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.

  2. jasonpaulweber
    Member
    Posted 9 months ago #

    Can you leave a link?

  3. kmessinger
    Volunteer Moderator
    Posted 9 months ago #

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

  4. saintblue
    Member
    Posted 9 months ago #

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

  5. kmessinger
    Volunteer Moderator
    Posted 9 months ago #

    Try setting all to 0.

  6. saintblue
    Member
    Posted 9 months ago #

    Same thing.

  7. saintblue
    Member
    Posted 9 months ago #

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

    Thanks for your time.

  8. kmessinger
    Volunteer Moderator
    Posted 9 months ago #

    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.

  9. saintblue
    Member
    Posted 8 months ago #

    Ok, Thank you for the response.

    I did deactivate all plug-ins. Uploaded a new image at 300x250, 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-300x250.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.

  10. kmessinger
    Volunteer Moderator
    Posted 8 months ago #

    Can we see your site with twentyeleven and no plugins?

  11. saintblue
    Member
    Posted 8 months ago #

  12. kmessinger
    Volunteer Moderator
    Posted 8 months ago #

    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.

  13. saintblue
    Member
    Posted 8 months ago #

    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.

  14. vabmedia
    Member
    Posted 8 months ago #

    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

  15. saintblue
    Member
    Posted 8 months ago #

    Thank you, checking into that now.

  16. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.