Yes, I understand, that existing images are used.
But it is possible to make certain "container" for slider that the visible (!) height of images was identical.
In the existing version "alignment" of pictures goes on the top edge. And cutting the bottom edge which is already(!) leveled.
I not the programmer))) Excuse, if it was not absolutely clearly expressed)))
Well, I also wanted all the shots to be the same height. Here are my changes in the slider.php file.
First, after
if ($image_size['height'] > $max_height) {
$max_height = $image_size['height'];
}
I added
//pick thumb unless smaller than $max_height, if so pick normal
$prefix = "thumb_";
if ($image_size['height'] < $max_height) {
//check if normal exists, if not pick original file
$file="albums/".$row['filepath']."normal_".$row['filename'];
if (file_exists($file)) {
$prefix = "normal_";
} else {
$prefix = "";
}
}
This will pick the thumb, unless the thumb is smaller than $max_height. In that case it will pick the normal_ photo unless it doesn't exist, in that case it will pull the original file.
Later, I changed
// path of pic
$file="albums/".$row['filepath']."thumb_".$row['filename'];
to
// path of pic
$file="albums/".$row['filepath'].$prefix.$row['filename'];
so that the correct picture is pulled and
// link of pic
$lien="<a href=\"displayimage.php?album=random&cat=0&pos=-$key\"><img src=\"".$file."\" border=0></a>";
is replaced with
// link of pic
$lien="<a href=\"displayimage.php?album=random&cat=0&pos=-$key\"><img src=\"".$file."\" border=0 height=".$max_height."></a>";
so that all pictures have the same height.
I haven't had much time to test really well, but on a cursury glance it seems to be working. You can see how it looks at
http://www.hobert.net/gallery/slider.php while I am playing with it. Looks like a really, really fun mod.
Note: as a fun thought experiment, change $max_height from "0" to something larger like "200"...