Don't set is_rotated if not necessary

This commit is contained in:
Laurenz Stampfl 2025-03-16 22:32:11 +01:00
parent abcd0822f8
commit 23741720ca

View File

@ -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.