From d005f1e798fb6e00dcc8ddc8bff5b0364f52a349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= Date: Mon, 27 May 2024 18:14:19 +0200 Subject: [PATCH] Use EXIF orientation info when converting image --- layouts/partials/image.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/image.html b/layouts/partials/image.html index d6a747f5..80e510b5 100644 --- a/layouts/partials/image.html +++ b/layouts/partials/image.html @@ -35,6 +35,7 @@ {{ .alt }} {{ else }} + {{ $image := $image.Filter (images.AutoOrient) }} {{ $minWidth := .page.Site.Params.imageResize.min | default 300 }} {{ $maxWidth := .page.Site.Params.imageResize.max | default 700 }}