From 23741720ca45772265bae2ec292e598c80aad767 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl Date: Sun, 16 Mar 2025 22:32:11 +0100 Subject: [PATCH] Don't set is_rotated if not necessary --- crates/typst-library/src/visualize/image/raster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/visualize/image/raster.rs b/crates/typst-library/src/visualize/image/raster.rs index da74ac577..7160606e5 100644 --- a/crates/typst-library/src/visualize/image/raster.rs +++ b/crates/typst-library/src/visualize/image/raster.rs @@ -88,7 +88,7 @@ impl RasterImage { // Apply rotation from EXIF metadata. if let Some(rotation) = exif.as_ref().and_then(exif_rotation) { apply_rotation(&mut dynamic, rotation); - is_rotated = true; + is_rotated = rotation != 1; } // Extract pixel density.