WordPress.org

Ready to get started?Download WordPress

Forums

WordPress not resizing images (7 posts)

  1. Goonky
    Member
    Posted 3 years ago #

    Hi,

    No matter what I change the width and height to, the image on this page does not change size.

    Any suggestions? I'm stumped. This is the new twenty ten theme.

    http://sightsinging.info

    Here's a direct link to the page with the problem image.

    http://sightsinging.info/?page_id=41

    If you click on the image you'll see it open in a new window and it's the right size.

    Any feedback welcome, I really don't know what I'm doing wrong.

  2. taghaboy
    Member
    Posted 3 years ago #

    i'd like to help, but i dont understand your question?
    but i will try.
    if you mean that you want a thumbnail image not the full size, just click over the image in wysiwyg and click in edit, thane in the popup windows, go at button and chose the size of your image, you have 4 options.

    hop i help you.

  3. Greglorious
    Member
    Posted 3 years ago #

    I'm having the same problem with the twenty ten theme...when I use the percentage scaler under an image's Advanced Options, it all looks good in the WYSIWYG editor. However, when I actually look at the post when published, none of the images get resized correctly. Any ideas??

  4. Thejas Kamath
    Member
    Posted 3 years ago #

    This link http://sightsinging.info/?page_id=41 does not take me to any page. It says -The Page Not Found.

    You can use a plugin to resize the images. You can download the plugin from here. In this plugin,you can resize the images at upload.

    Thanks

  5. ThePLD
    Member
    Posted 3 years ago #

    I think this is a bug. When using the resize, WP is simply setting a width and height to the image. The problem is that the image still has the original style class of the image you picked. This class overrides the parameters set when resizing the image. In other words, if you picked the "large" version of your image (let's say 600px wide) but then resized it by 50% (300px wide), WP would spit out something like this (watered down version):

    <img style="large-image" width="300" height="300" src="my_pic.jpg" />

    So, the width and height are ignored as the style class has higher priority.

  6. ThePLD
    Member
    Posted 3 years ago #

    Found the problem (at least for many users I suspect). TwentyTen (and probably some other themes as well) has the following style set for the content div:

    #content img {
    	margin: 0;
    	height: auto;
    	max-width: 640px;
    	width: auto;
    }

    The auto width and height are causing the problem...

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    It's a known issue with TwentyTen. Removing width:auto;height:auto; usually fixes it.

Topic Closed

This topic has been closed to new replies.

About this Topic