Skip to content

Commit 4c65e1f

Browse files
committed
Conflicts
1 parent b339124 commit 4c65e1f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/core/jpeg_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class JpegStream extends DecodeStream {
9494
}
9595
}
9696
const jpegImage = new JpegImage(jpegOptions);
97+
9798
jpegImage.parse(bytes);
9899
const data = jpegImage.getData({
99100
width: this.drawWidth,

src/core/jpg.js

+2
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ class JpegImage {
789789
component.blocksPerLine = blocksPerLine;
790790
component.blocksPerColumn = blocksPerColumn;
791791
}
792+
frame.mcusPerLine = mcusPerLine;
793+
frame.mcusPerColumn = mcusPerColumn;
792794
}
793795

794796
let offset = 0;

src/display/canvas.js

+3
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,8 @@ class CanvasGraphics {
10591059
// Vertical or horizontal scaling shall not be more than 2 to not lose the
10601060
// pixels during drawImage operation, painting on the temporary canvas(es)
10611061
// that are twice smaller in size.
1062+
const width = img.width;
1063+
const height = img.height;
10621064
let widthScale = Math.max(
10631065
Math.hypot(inverseTransform[0], inverseTransform[1]),
10641066
1
@@ -1513,6 +1515,7 @@ class CanvasGraphics {
15131515
ctx.fillRect(0, 0, width, height);
15141516
ctx.globalCompositeOperation = "source-over";
15151517
}
1518+
15161519
maskCanvas = canvas.canvas;
15171520
maskX = maskY = 0;
15181521
} else if (backdrop.some(c => c !== 0)) {

0 commit comments

Comments
 (0)