Fixes decoding for CMYK jpegs.

This commit is contained in:
Yury Delendik 2014-10-15 15:56:29 -05:00
parent 406bdc0862
commit 2d7a34d692
3 changed files with 10 additions and 1 deletions

View File

@ -884,7 +884,7 @@ var JpegStream = (function JpegStreamClosure() {
var jpegImage = new JpegImage();
// checking if values needs to be transformed before conversion
if (this.dict && isArray(this.dict.get('Decode'))) {
if (this.forceRGB && this.dict && isArray(this.dict.get('Decode'))) {
var decodeArr = this.dict.get('Decode');
var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
var decodeArrLength = decodeArr.length;

View File

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=8494369

View File

@ -1602,6 +1602,14 @@
"rounds": 1,
"type": "eq"
},
{ "id": "bug1072164",
"file": "pdfs/bug1072164.pdf",
"md5": "cfee3c51e8464aa44218f4eaf27e084b",
"rounds": 1,
"link": true,
"type": "eq",
"about": "CMYK jpeg with mask"
},
{ "id": "bug886717",
"file": "pdfs/bug886717.pdf",
"md5": "8ba614192797a1324765610231a1bc9d",