Resize width and height of images differently

teefer

Joined: 2012-10-03
Posts: 2
Posted: Wed, 2012-10-03 10:26

Is there any way to have Gallery resize the width and height of it's images to differenty amounts?

My site is designed to be more landscape than portrait, so I would like to have the max width of resizes to be 850 but the height only 650. This way images that are portrait will not appear too tall. At the moment I can only find one setting for this, "resize_size". This works well for landscape images, but portrait ones are too big.

Thanks in advance.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-10-03 11:52

Gallery respects the aspect of the media.
You'd have to start hacking the code.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
teefer

Joined: 2012-10-03
Posts: 2
Posted: Wed, 2012-10-03 13:25

Thanks for your answer, but I am not trying to change the aspect of the images. What I want to do is have all images resized to fit within a frame of 850 wide by 650 high. This would just be more noticeable on square and portrait images (less so on landscape ones). What I want to avoid is having to restrict all dimensions to a smaller value just to make sure portrait shaped images do not appear too tall on the page.

T

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-10-03 15:51

here I show how to use inline styles to control the image size, you could do something similar.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
Gork

Joined: 2008-09-09
Posts: 85
Posted: Mon, 2012-10-08 09:49

I have the following note in my notes; not sure if it might lead you in the right direction... This changed affected the RELATIVE HEIGHT of image containers for me, but didn't change the actual thumnail size.

To fix the height where some of the containers for sub-gallery thumbs I changed 240 to 255 on the following line in Page.html.php: <? $new_height = round($thumb_proportion * 240) ?> (Thanks to floridave: http://gallery.menalto.com/node/108058#comment-395735)