foto: increase thumbnail height for exceptional rows
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 24 Oct 2019 05:08:27 +0000 (07:08 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 21 Nov 2019 19:00:01 +0000 (20:00 +0100)
Even with the configured maximum of 200*1.25=250px, resulting sizes appear
to regularly exceed that, with anything up to 262px being quite common and
easily reproducible (in Lijtweg historisch).

foto/index.php

index e9b9521f76b6e5fc36e3094ab6a6d9865c3022f8..4b61f37c08a36830db868574cc6ba1984d0bec4d 100644 (file)
@@ -36,7 +36,7 @@ function showthumb($path)
 {
        // assume all album entries are symlinks to archive originals
        $target = preg_replace('{^(\.\./)*}', '', readlink($path));
-       $thumb = 'thumb/250/' . $target;
+       $thumb = 'thumb/262/' . $target;
 
        @list ($order, $size, $title) = explode(':', pathinfo($path, PATHINFO_FILENAME), 3);
        $imgtag = 'img src="/'.$thumb.'"';