feat: handle exif orientation

This commit is contained in:
sixpointcube 2024-06-23 19:44:54 -04:00
parent 5370b41de8
commit 46fa092ad8

View File

@ -20,8 +20,9 @@
{{ $matches := "feature,cover" }}
{{/* Use the value from front matter if present */}}
{{ with .Params.featured_image }}
{{ $filter := images.AutoOrient }}
{{ $original := resources.Get . }}
{{ with $original }}
{{ with $original | images.Filter $filter }}
{{ $processed := .Process "webp" }}
{{ $linkToCover = $processed.RelPermalink }}
{{ end }}