File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - Fixed a potential issue in the minimized library when detecting the orientation of JPEG images
6
+
3
7
## 0.2.17 - 2024-12-23
4
8
5
9
- Fix big size pdfmake bundle for browser
Original file line number Diff line number Diff line change @@ -28,11 +28,9 @@ ImageMeasure.prototype.measureImage = function (src) {
28
28
29
29
var imageSize = { width : image . width , height : image . height } ;
30
30
31
- if ( typeof image === 'object' && image . constructor . name === 'JPEG' ) {
32
- // If EXIF orientation calls for it, swap width and height
33
- if ( image . orientation > 4 ) {
34
- imageSize = { width : image . height , height : image . width } ;
35
- }
31
+ // If EXIF orientation calls for it, swap width and height
32
+ if ( image . orientation > 4 ) {
33
+ imageSize = { width : image . height , height : image . width } ;
36
34
}
37
35
38
36
return imageSize ;
You can’t perform that action at this time.
0 commit comments