1
0
Fork 0
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:
fkaelberer 2014-04-19 19:34:42 +02:00
parent ee545ddb54
commit 11f565547c
2 changed files with 18 additions and 4 deletions

View file

@ -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.');
}