Fixes decoding for CMYK jpegs.
This commit is contained in:
parent
406bdc0862
commit
2d7a34d692
@ -884,7 +884,7 @@ var JpegStream = (function JpegStreamClosure() {
|
|||||||
var jpegImage = new JpegImage();
|
var jpegImage = new JpegImage();
|
||||||
|
|
||||||
// checking if values needs to be transformed before conversion
|
// 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 decodeArr = this.dict.get('Decode');
|
||||||
var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
|
var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
|
||||||
var decodeArrLength = decodeArr.length;
|
var decodeArrLength = decodeArr.length;
|
||||||
|
1
test/pdfs/bug1072164.pdf.link
Normal file
1
test/pdfs/bug1072164.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://bugzilla.mozilla.org/attachment.cgi?id=8494369
|
@ -1602,6 +1602,14 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "bug1072164",
|
||||||
|
"file": "pdfs/bug1072164.pdf",
|
||||||
|
"md5": "cfee3c51e8464aa44218f4eaf27e084b",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"type": "eq",
|
||||||
|
"about": "CMYK jpeg with mask"
|
||||||
|
},
|
||||||
{ "id": "bug886717",
|
{ "id": "bug886717",
|
||||||
"file": "pdfs/bug886717.pdf",
|
"file": "pdfs/bug886717.pdf",
|
||||||
"md5": "8ba614192797a1324765610231a1bc9d",
|
"md5": "8ba614192797a1324765610231a1bc9d",
|
||||||
|
Loading…
Reference in New Issue
Block a user