blissd / fotema

Photo gallery for Linux
81 stars 8 forks source link

EXIF orientation breaks image width/height #118

Open blissd opened 3 months ago

blissd commented 3 months ago

Fotema uses CSS to rotate images so they align with their EXIF orientation data. However, when rotated with CSS the images don't have the proper (rotated) width and height, which manifest as images either having some cropping, or appearing too small for the view port.

This can possibly be fixed by bumping to Glycin 2.0 (beta at time of writing) which can apply EXIF transforms when opening an image.

blissd commented 3 months ago

I've tested with having Glycin 2.0.0.beta do the rotation and that works... but it is just too slow. There is a palpable delay when opening photos that must be rotated and I fear that for especially large photos the dreaded "This application has stopped responding" message might pop up. So either I can't use Glycin to fix this problem, or I'll have to introduce some more complexity to load and rotate images in the background.