mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2025-01-22 04:11:19 -05:00
Use EXIF orientation info when converting image
This commit is contained in:
parent
d4df517137
commit
d005f1e798
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user