Support » Fixing WordPress » Need help with auto-resizing image (also zoom & proportioned)

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    Forum Moderator

    First go to Admin/Settings/Media and uncheck “Crop thumbnail to exact dimensions”. In terms of ensuring that images do not break out of the post area, you need to ensure that you do not insert images that are wider than 480px.

    Esmi,

    That’s the issue… most images that I insert are much wider then that therefore I would like a plugin that would proportionally adjust the image to the specified size… So what can i do?

    I found this code here: http://remaginedreality.blogspot.com/2008/02/auto-resize-posted-images-in-wordpress.html

    .storycontent img {
    max-width: 460px;
    width: expression(this.width > 460 ? 460: true);
    }

    If I set it to the max with of let’s say the above, would that proportionally adjust the image?

    esmi

    (@esmi)

    Forum Moderator

    Not see that approach myself. The only downside would be that images resized via the browser tend to poor quality. But, on the upside, it wouldn’t hurt to try adding it to your stylesheet using:

    .entry img {
    max-width: 460px;
    width: expression(this.width > 460 ? 460: true);
    }

    The very worst it could do is not work.

    The best approach, longer term, would be to learn how to resize images to suit your site on your own computer. If you use Windows, IrfanView is free and pretty simple to use.

    Thanks for the help 🙂

    I know how to resize the images myself on the computer… I just thought it would be nice if there’s a plugin that resizes them by proportion as well as when you click on the images it would the view would enlarge…

    What do you think?

    esmi

    (@esmi)

    Forum Moderator

    Do you mean something like a lightbox? A fancy popup that shows an enlarged version?

    http://wordpress.org/extend/plugins/search.php?q=lightbox

    THanks for the help Esmi!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need help with auto-resizing image (also zoom & proportioned)’ is closed to new replies.