Forums

[resolved] Is there a gallery plugin that can resize images? (3 posts)

  1. nipponese
    Member
    Posted 2 years ago #

    I really like NextGEN gallery, but one thing I wish it did was re-size images. I am working on a website for an Artist, and I'd like the uploaded image to be re-sized to some specific dimensions to fix nicely in the layout.

    Is there another plugin that can do this?

  2. 11ndy
    Member
    Posted 2 years ago #

    Then CSS max-width property comes to the rescue. And it finally works the way I wanted it to. It didn't resize smaller images. It resize only larger images which are larger than the specified required image size. Here is the CSS code for your WordPress style.css.

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

    .storycontent: The story content class. Change accordingly.
    img: For images found inside the .storycontent posted story
    460px: Change this accordingly (or lesser probably) to the width size of your story content box.
    width: expression(this.width > 460 ? 460: true); max-width fix for IE. Change the 460 to the appropriate size.

    source: http://remaginedreality.blogspot.com/

  3. nipponese
    Member
    Posted 2 years ago #

    Thanks, but I would prefer GD do it for me. I came across this plugin Scissors that enables this functionality for Media, I just wish it were integrated into NextGEN.

Topic Closed

This topic has been closed to new replies.

About this Topic