1
0
Fork 0
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:
Brendan Dahl 2011-11-22 09:32:20 -08:00
parent 7a5556ca91
commit b64b7d55b1
3 changed files with 261 additions and 68 deletions

View file

@ -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;