|
|
@ -918,15 +918,15 @@ var JpegImage = (function JpegImageClosure() { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { // `this.numComponents !== 3`
|
|
|
|
|
|
|
|
if (!this.adobe && this.colorTransform === 1) { |
|
|
|
|
|
|
|
// If the Adobe transform marker is not present and the image
|
|
|
|
|
|
|
|
// dictionary has a 'ColorTransform' entry, explicitly set to `1`,
|
|
|
|
|
|
|
|
// then the colours should be transformed.
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// `this.numComponents !== 3`
|
|
|
|
|
|
|
|
if (!this.adobe && this.colorTransform === 1) { |
|
|
|
|
|
|
|
// If the Adobe transform marker is not present and the image
|
|
|
|
|
|
|
|
// dictionary has a 'ColorTransform' entry, explicitly set to `1`,
|
|
|
|
|
|
|
|
// then the colours should be transformed.
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_convertYccToRgb: function convertYccToRgb(data) { |
|
|
|
_convertYccToRgb: function convertYccToRgb(data) { |
|
|
@ -1072,9 +1072,8 @@ var JpegImage = (function JpegImageClosure() { |
|
|
|
if (this._isColorConversionNeeded()) { |
|
|
|
if (this._isColorConversionNeeded()) { |
|
|
|
if (forceRGBoutput) { |
|
|
|
if (forceRGBoutput) { |
|
|
|
return this._convertYcckToRgb(data); |
|
|
|
return this._convertYcckToRgb(data); |
|
|
|
} else { |
|
|
|
|
|
|
|
return this._convertYcckToCmyk(data); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return this._convertYcckToCmyk(data); |
|
|
|
} else if (forceRGBoutput) { |
|
|
|
} else if (forceRGBoutput) { |
|
|
|
return this._convertCmykToRgb(data); |
|
|
|
return this._convertCmykToRgb(data); |
|
|
|
} |
|
|
|
} |
|
|
|