mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Fix corrupted images #4649
This commit is contained in:
parent
ee545ddb54
commit
11f565547c
2 changed files with 18 additions and 4 deletions
|
@ -107,8 +107,10 @@ var PDFImage = (function PDFImageClosure() {
|
|||
case 3:
|
||||
colorSpace = Name.get('DeviceRGB');
|
||||
break;
|
||||
case 4:
|
||||
colorSpace = Name.get('DeviceCMYK');
|
||||
break;
|
||||
default:
|
||||
// TODO: Find out how four color channels are handled. CMYK? Alpha?
|
||||
error('JPX images with ' + this.numComps +
|
||||
' color components not supported.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue