From e3712dd643591f1a36ab04e5be6329e8fd4d8a76 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 17:14:48 +0000 Subject: [PATCH] Preserve legacy WebP EXIF orientation --- crates/image-codecs/src/webp_probe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/image-codecs/src/webp_probe.rs b/crates/image-codecs/src/webp_probe.rs index 8e33a71cf..07d6e0269 100644 --- a/crates/image-codecs/src/webp_probe.rs +++ b/crates/image-codecs/src/webp_probe.rs @@ -26,7 +26,7 @@ pub fn header(bytes: &[u8]) -> Result<(u32, u32, u16), CodecError> { return Err(err("no image data")); } let (w, h) = crate::probe_size(bytes)?; - let orientation = exif.map_or(1, crate::exif_orientation); + let orientation = exif.map_or(1, craft_metadata::compat_orientation::orientation); let (w, h) = if (5..=8).contains(&orientation) { (h, w) } else { (w, h) }; Ok((w, h, orientation)) }