images.AutoOrient
Usage​
Create the filter:
{{ $filter := images.AutoOrient }}
When using with other filters, specify images.AutoOrient
first.
{{ $filters := slice
images.AutoOrient
(images.Process "resize 200x")
}}
{{ with resources.Get "images/original.jpg" }}
{{ with images.Filter $filters . }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
{{ end }}
{{ end }}