bep / gallerydeluxe

Fast Hugo gallery theme/module suitable for lots of images.
MIT License
146 stars 31 forks source link

Support Exif orientation #9

Open SaGuse opened 1 year ago

SaGuse commented 1 year ago

in my gallery i have 50 images take by andorid an iphone cameras

the gallery works great and create the thumbnails for the website, but the most thumbnails are coming with the wrong orientation

on the same image the thumbnail is always the same error, that means, i cleared the cache and rebuild the project, but an image with a wrong thumbnail orientation of 90 or 180 degrees, always had the same error

the large image of an "wrong" thumbnail, comes in the correct orientation

in the code i see, that the orientation is calculated from the exif x and y dimensions, but if i analyze my images, the dimensions looking fine

bep commented 1 year ago

Yea, that's mostly a limitation in Hugo upstream (it is possible to fix in the current Hugo, but it's a little involved), which hasn't been a priority for me to fix because my photo workflow always includes a processing step (Lightroom).

SaGuse commented 1 year ago

Thanks for the answer, instead of taking the images from the smartphone, I will adjust the workflow and also use lightroom.

iHarshad commented 1 year ago

Even I am facing the same thumbnail issue where the thumbnails of some images don't have the right orientation. Could someone share some details on what needs to be edited or added to the image EXIF data via Lightroom to fix this?

I could then update the documentation mentioning this as a known bug with a workaround for the same, and share a PR.

PS: I am us using bep/galleriesdeluxe which uses this repo as a module.