foto: keep static images of height 250
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 24 Oct 2019 04:58:04 +0000 (06:58 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 21 Nov 2019 19:00:01 +0000 (20:00 +0100)
commite3be85e24011ce42b9c48e19a21b9e7faba72767
tree9a252580fb5ca5ca35eadfbbbda11c8b10c2b753
parent8dfcd9f98a316599cae7d94f56069c4ba79d2c93
foto: keep static images of height 250

Drop dynamic source replacement to match actual client sizes, as the quality
loss from downsizing a _larger_ image is minimal.

Originally introduced in lijtweg commit v2.5-7-gcd93e774e6 (2017-10-11)
[foto: replace justified thumbnails by height-optimised versions]
with visible improvements probably due to using the target size of 200px
without adjusting for up to 1.25x enlargement to fit.

Testing originals of 250px on modern browsers with (bilinear) rescaling
is hard to distinguish (not significantly more blurry) and depends on only
a single thumbnail resolution to be created for significantly reduced
resource requirements.  May be slightly larger on average, but likely much
smaller without reloads and considering caching opportunities.
foto/album.inc.php
foto/index.php