mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01: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 -->
|
||||
<img src="{{ $image.RelPermalink }}" alt="{{ .alt }}" />
|
||||
{{ else }}
|
||||
{{ $image := $image.Filter (images.AutoOrient) }}
|
||||
<!-- Calculate resize widths in increments of 100px -->
|
||||
{{ $minWidth := .page.Site.Params.imageResize.min | default 300 }}
|
||||
{{ $maxWidth := .page.Site.Params.imageResize.max | default 700 }}
|
||||
|
Loading…
Reference in New Issue
Block a user