slideshow image control

Yes, more slideshow questions... :)

I believe, the way the code is currently written, the control over the size of the slideshow images seems to be related primarily to setting the maximum width. I.e., when you set the size of the slideshow, it only determines the images widths, and their heights are simply scaled accordingly. This is problematic because if you set the size to something relatively large, your landscape photos look fine on most monitors, but your portrait photos extend off the bottom of the screen on some monitors.

I've solved this problem on the image.php page by writing a simple function that restricts the max width AND max height of images. So images are scaled down until their width is less than the max width AND their height is less than the max height.

But after pawing thru the slideshow code for a while, it seems that it is written very differently than the code used on image.php. Is there an easy way to restrict both the width AND height in slideshow? It seems like calling the same functions doesn't seem to be working.

Thanks!

Comments

  • acrylian Administrator, Developer
    The slideshow simply uses the normal sized image size if you don't specify anthing in the options. The normal functions do not work since we are outside of any album/image context on the slideshow. Generally it is possible, but that is not really easy because of all the javascript stuff for preloading involved. Having generally the option to set a widht and height for Zenphoto images is on my list, but I am lacking time currently to get to it.
  • no worries; i understand. thanks for the explanation!

    I suppose another option would be something that looks like the Flickr slideshow since they seem to have a pretty good thing going there.

    thanks again for all the good work; i'll definitely make do with what we have now!
Sign In or Register to comment.