mirror of
https://github.com/typst/typst
synced 2025-08-15 07:28:32 +08:00
Don't set is_rotated if not necessary
This commit is contained in:
parent
abcd0822f8
commit
23741720ca
@ -88,7 +88,7 @@ impl RasterImage {
|
|||||||
// Apply rotation from EXIF metadata.
|
// Apply rotation from EXIF metadata.
|
||||||
if let Some(rotation) = exif.as_ref().and_then(exif_rotation) {
|
if let Some(rotation) = exif.as_ref().and_then(exif_rotation) {
|
||||||
apply_rotation(&mut dynamic, rotation);
|
apply_rotation(&mut dynamic, rotation);
|
||||||
is_rotated = true;
|
is_rotated = rotation != 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract pixel density.
|
// Extract pixel density.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user