e2interactive forums » (E)2 Photo Gallery FAQ

Search:

Resize vertical-oriented photos height

(3 posts)
  • Started 3 months ago by Ultraviolet
  • Latest reply from Ultraviolet

  1. Ultraviolet
    Member

    This possibly has a very simple solution, but in the demo on the website, there are several photos, some horizontally oriented, and one vertically oriented. When the vertically oriented photo loads, the height is the same as that of the horizontal photos, thus, the gallery doesn't grow vertically. My gallery is working fine, except for this: The vertically oriented photos height is greater than the horizontal photos, thus causing the whole gallery to grow. Is there an easy fix for this? Possibly somewhere to specify maxheight?

    Thanks..UV

    Posted 3 months ago #
  2. It's all depends on the size of your image ratio. I would resize my landscape images to be no more than 600 wide, then I would open the resized photo and see what it's height was and then set my max height to be no more than that height. In the uploader, if you are using that for the resizing of your photos, open the index.php file and find the follwing lines:

    $handle->image_resize       =   true;
    $handle->image_ratio         =   true;
    $handle->image_y               =   600;
    $handle->image_x               =   600;
    $handle->jpeg_quality        =   95;

    Change the $handle->image_x = 600; to be the number you'd like it to be at it's max.

    Posted 3 months ago #
  3. Ultraviolet
    Member

    Ahh, that makes sense. Thanks for the quick response. Great gallery by the way, you've made a very user-friendly and easy to use product, kudos!

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.