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
David PHAM-VAN
2021-09-01 16:27:57 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
809d1fabffe97d01c1f96de3c115ede9e3170ceb
809d1fab
1 parent
31e6a1bc
Fix Exif decoding
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/exif.dart
pdf/CHANGELOG.md
View file @
809d1fa
...
...
@@ -4,6 +4,7 @@
-
Add annotations
[
John Harris
]
-
Improve image decoding error messages
-
Fix Exif decoding
## 3.4.2
...
...
pdf/lib/src/pdf/exif.dart
View file @
809d1fa
...
...
@@ -23,12 +23,15 @@ import 'image.dart';
class
PdfJpegInfo
{
/// Load a Jpeg image's metadata
factory
PdfJpegInfo
(
Uint8List
image
)
{
final
buffer
=
image
.
buffer
.
asByteData
();
final
buffer
=
image
.
buffer
.
asByteData
(
image
.
offsetInBytes
,
image
.
lengthInBytes
,
);
int
?
width
;
int
?
height
;
int
?
color
;
var
offset
=
image
.
offsetInBytes
;
var
offset
=
0
;
while
(
offset
<
buffer
.
lengthInBytes
)
{
while
(
buffer
.
getUint8
(
offset
)
==
0xff
)
{
offset
++;
...
...
Please
register
or
login
to post a comment