Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
deepak786
2022-06-15 16:23:29 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2022-06-15 09:47:15 -0300
Commit
8c9b297e6aa5abe7845a76704dd6ee968ffbe5d3
8c9b297e
1 parent
96fe6ef3
Fix exif orientation
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
pdf/lib/src/pdf/exif.dart
pdf/lib/src/pdf/exif.dart
View file @
8c9b297
...
...
@@ -112,7 +112,12 @@ class PdfJpegInfo {
}
try
{
return
PdfImageOrientation
.
values
[
tags
![
PdfExifTag
.
Orientation
]
-
1
];
final
int
index
=
tags
![
PdfExifTag
.
Orientation
]
-
1
;
const
orientations
=
PdfImageOrientation
.
values
;
if
(
index
>=
0
&&
index
<
orientations
.
length
)
{
return
orientations
[
index
];
}
return
PdfImageOrientation
.
topLeft
;
}
on
RangeError
{
return
PdfImageOrientation
.
topLeft
;
}
...
...
Please
register
or
login
to post a comment