WordPress.org

Ready to get started?Download WordPress

Forums

Need help with auto-resizing image (also zoom & proportioned) (8 posts)

  1. Tee
    Member
    Posted 5 years ago #

    Hey!

    When I upload let's say 10 photos using the flash uploader and I post these images as a gallery none of these images break out of the design, however you can see that the main image is unproportioned: http://adidas-talk.com/apparel/milk-china-x-the-satorialist-x-adidas-originals-“five-two-3″-campaign

    Question: How do I fix that?

    When I upload images one by one and insert them into my post one at a time, then the image will break: http://adidas-talk.com/sneakers/adidas-conductor-olympic

    Question: How do I make sure that all my images are auto-resized & proportionately

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

  3. Tee
    Member
    Posted 5 years ago #

    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?

  4. Tee
    Member
    Posted 5 years ago #

    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?

  5. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

  6. Tee
    Member
    Posted 5 years ago #

    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?

  7. esmi
    Forum Moderator
    Posted 5 years ago #

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

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

  8. Tee
    Member
    Posted 5 years ago #

    THanks for the help Esmi!

Topic Closed

This topic has been closed to new replies.

About this Topic