Closed boratanrikulu closed 9 months ago
I have the same issue, in the "preview" the image is correct (rotated). When I click the Image i.e the post it is not rotated correctly.
From my understanding it should be simple to fix?
Did someone already fix it?
It works if I set in config.yml
disableAlwaysResize: true
Fix must be something todo with:
Not sure how to fix it with disableAlwaysResize: false
Hi,
It should be fixed like this;
{{ with $img.Exif }}
{{ if eq .Tags.Orientation 6 }}
{{ $resizer = "1000x r270" }}
{{ end }}
{{ if eq .Tags.Orientation 3 }}
{{ $resizer = "1000x r180" }}
{{ end }}
{{ end }}
{{ $resizer := "3000x r0" }}
{{ with $img.Exif }}
{{ if eq .Tags.Orientation 6 }}
{{ $resizer = "3000x r270" }}
{{ end }}
{{ if eq .Tags.Orientation 3 }}
{{ $resizer = "3000x r180" }}
{{ end }}
{{ end }}
{{ $img = $img.Resize $resizer }}
Sadly, I don't have time to fix it myself, PRs are welcome.
Awesome! Just been having this problem myself, managed to fix it thanks to this.
I've put up a PR to implement the changes.
[!WARNING]
This project is currently not being actively maintained.
Please do not create new issues on GitHub.
https://welbornmetal.com/furniture/shoe_rack_2/
Originally posted by @CAinDE in https://github.com/boratanrikulu/eternity/issues/7#issuecomment-1477245527