gallerydeluxe icon indicating copy to clipboard operation
gallerydeluxe copied to clipboard

Support Exif orientation

Open SaGuse opened this issue 3 years ago • 3 comments

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

SaGuse avatar Dec 19 '22 19:12 SaGuse

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).

bep avatar Dec 19 '22 20:12 bep

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

SaGuse avatar Dec 19 '22 20:12 SaGuse

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.

iHarshad avatar Jul 31 '23 07:07 iHarshad