mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Use the updated jpgjs with faster transform.
This commit is contained in:
parent
7a5556ca91
commit
b64b7d55b1
3 changed files with 261 additions and 68 deletions
|
@ -830,7 +830,8 @@ var JpegStream = (function jpegStream() {
|
|||
constructor.prototype.ensureBuffer = function jpegStreamEnsureBuffer(req) {
|
||||
if (this.bufferLength)
|
||||
return;
|
||||
var jpegImage = new JpegImage(this.colorTransform);
|
||||
var jpegImage = new JpegImage();
|
||||
jpegImage.colorTransform = this.colorTransform;
|
||||
jpegImage.parse(this.bytes);
|
||||
var width = jpegImage.width;
|
||||
var height = jpegImage.height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue