Use EXIF orientation info when converting image

This commit is contained in:
Dawid Wróbel 2024-05-27 18:14:19 +02:00
parent d4df517137
commit d005f1e798

View File

@ -35,6 +35,7 @@
<!-- No processing for SVGs --> <!-- No processing for SVGs -->
<img src="{{ $image.RelPermalink }}" alt="{{ .alt }}" /> <img src="{{ $image.RelPermalink }}" alt="{{ .alt }}" />
{{ else }} {{ else }}
{{ $image := $image.Filter (images.AutoOrient) }}
<!-- Calculate resize widths in increments of 100px --> <!-- Calculate resize widths in increments of 100px -->
{{ $minWidth := .page.Site.Params.imageResize.min | default 300 }} {{ $minWidth := .page.Site.Params.imageResize.min | default 300 }}
{{ $maxWidth := .page.Site.Params.imageResize.max | default 700 }} {{ $maxWidth := .page.Site.Params.imageResize.max | default 700 }}