diff options
| author | Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> | 2025-03-27 11:59:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-27 10:59:32 +0000 |
| commit | 838a46dbb7124125947bfdafe8ddf97810c5de47 (patch) | |
| tree | 2d28d9f6c27e8e48c91f47cea0966784027243dc /crates/typst-library/src | |
| parent | 1f1c1338785dc09a43292cf106b4a23b4e1bd86e (diff) | |
Test all exif rotation types and fix two of them (#6102)
Diffstat (limited to 'crates/typst-library/src')
| -rw-r--r-- | crates/typst-library/src/visualize/image/raster.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/visualize/image/raster.rs b/crates/typst-library/src/visualize/image/raster.rs index 0883fe71..453b9406 100644 --- a/crates/typst-library/src/visualize/image/raster.rs +++ b/crates/typst-library/src/visualize/image/raster.rs @@ -325,12 +325,12 @@ fn apply_rotation(image: &mut DynamicImage, rotation: u32) { ops::flip_horizontal_in_place(image); *image = image.rotate270(); } - 6 => *image = image.rotate90(), + 6 => *image = image.rotate270(), 7 => { ops::flip_horizontal_in_place(image); *image = image.rotate90(); } - 8 => *image = image.rotate270(), + 8 => *image = image.rotate90(), _ => {} } } |
