Junior Member
Junior Member
beat-x   2012-08-04, 15:48
#1

Dear all

I would like to tell Zenphoto: "Resize landscape oriented images such that they are exactly 800 pixels wide, please calculate the height accordingly. And please resize portrait oriented images such that they are exactly 500 pixels in height, calculate width automatically."

How do I achieve this with
a) zenphoto functions and
b) with i.php parameters?

The "s" parameter does not do that, because it also resizes portrait oriented images to that value in height.

Administrator
Administrator
fretzl   2012-08-04, 16:19
#2

You can use the function isLandscape().

Something like:
if(isLandscape()) { do something; } else { do something else; }

Administrator
Administrator
acrylian   2012-08-04, 16:23
#3

Or use the set of maxspace custom image functions to set max width and max height for images on your theme. Info on the functions documentation on the user guide.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.