Commit 3b6ec28 1 parent 5926fc9 commit 3b6ec28 Copy full SHA for 3b6ec28
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Reverted to the original ` pdfkit ` package, moving away from ` @foliojs-fork `
6
6
- Update pdfkit to 0.16.0
7
+ - Fixed a potential issue in the minimized library when detecting the orientation of JPEG images
7
8
8
9
## 0.3.0-beta.14 - 2024-12-23
9
10
Original file line number Diff line number Diff line change @@ -131,11 +131,9 @@ class DocMeasure {
131
131
132
132
let imageSize = { width : image . width , height : image . height } ;
133
133
134
- if ( image . constructor . name === 'JPEG' ) {
135
- // If EXIF orientation calls for it, swap width and height
136
- if ( image . orientation > 4 ) {
137
- imageSize = { width : image . height , height : image . width } ;
138
- }
134
+ // If EXIF orientation calls for it, swap width and height
135
+ if ( image . orientation > 4 ) {
136
+ imageSize = { width : image . height , height : image . width } ;
139
137
}
140
138
141
139
this . measureImageWithDimensions ( node , imageSize ) ;
You can’t perform that action at this time.
0 commit comments