I'm still working on creating slideshows with custom sized images.
I'm passing a variable into the slideshow functionality, so this accomplishes the basics. But I've learned that this variable (&imagesize) only controls the width. This is a bummer since portrait photos are then too tall.
So I've been playing around with this line of code:
$img = WEBPATH . '/' . ZENFOLDER . '/i.php?a=' . urlencode($image->album->name) . '&i=' . urlencode($filename) . '&s=' . $imagesize;
If I nix the '&s=' stuff and use '&h=' instead, I can restrict the height of the photos. This is closer, but I've now lost the ability to restrict the width.
I've played around with all of the following, including combinations:
&s=
&w=
&h=
Depending on the combination, cropping kicks in. Not the desired effect.
I simply want a photo to be scaled down until it's width is equal to or less than a certain number AND its height is equal to or less than another number, with NO cropping.
Any way to do this? Are there other variables that I can use above? (I couldn't find documentation of this anywhere, but it probably exists - I just don't know where to look.) Or is there a &x= where x will force it to NOT crop?
Thanks in advance!