From 1a45b5ba81b9797964997928f17225ee0277020e Mon Sep 17 00:00:00 2001
From: Michael Vanden Heuvel <55962002+Michaelmvh@users.noreply.github.com>
Date: Fri, 2 Jan 2026 16:14:16 -0800
Subject: [PATCH] Add auto-orient flag to Imagemagick config (#3409)
Currently, images generated by Imagemagick do not respect the
orientation of the source image. By adding the auto-orient flag, the
images are the correct orientation.
Before
After
---
_config.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_config.yml b/_config.yml
index f733b34..737e395 100644
--- a/_config.yml
+++ b/_config.yml
@@ -367,7 +367,7 @@ imagemagick:
- ".tiff"
- ".gif"
output_formats:
- webp: "-quality 85"
+ webp: "-auto-orient -quality 85"
# Lazy loading images
# If you enable lazy loading, all images will add the loading="lazy" attribute.