Skip to content

v0.1.15

Choose a tag to compare

@github-actions github-actions released this 19 Nov 06:58
· 4 commits to main since this release
dac233e

Fix

  • Thumbnails are no longer served lying on their side. A JPEG stores the rotation of the photo in the EXIF orientation and image/jpeg ignores it, so a phone portrait (stored landscape plus orientation 6) produced a landscape thumbnail while the browser showed the original upright. The thumbnail now applies the transform; HEIC goes through the decoder with AutoRotate and is not rotated twice.
  • The cache key carries a version (v2), so the thumbnails generated by the previous code are never served again.
  • The EXIF worker stores the width and height the user sees (swapped for orientations 5 to 8), so the timeline stops laying a portrait photo out as landscape.

Measured on a live instance before the fix: a Galaxy S23 Ultra photo stored 4000x2252 with orientation 6 was served with a 400x225 thumbnail.

Thanks

Thanks to @s10l (#34), whose patch and tests are the base of this one.