We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fde787 commit ed1c917Copy full SHA for ed1c917
1 file changed
jspdf.plugin.addimage.js
@@ -511,10 +511,10 @@
511
512
} else {
513
514
- if (imgData.charCodeAt(0) === 0x89 &&
515
- imgData.charCodeAt(1) === 0x50 &&
516
- imgData.charCodeAt(2) === 0x4e &&
517
- imgData.charCodeAt(3) === 0x47 ) format = 'png';
+ if (imageData.charCodeAt(0) === 0x89 &&
+ imageData.charCodeAt(1) === 0x50 &&
+ imageData.charCodeAt(2) === 0x4e &&
+ imageData.charCodeAt(3) === 0x47 ) format = 'png';
518
}
519
520
format = (format || 'JPEG').toLowerCase();
0 commit comments