Ignore colour profiles in LAB images as they are already LAB

This commit is contained in:
Lovell Fuller
2019-01-12 18:13:43 +00:00
parent 9dd6510de6
commit bd377438b6
2 changed files with 2 additions and 2 deletions

View File

@@ -297,7 +297,7 @@ class PipelineWorker : public Nan::AsyncWorker {
}
// Ensure we're using a device-independent colour space
if (sharp::HasProfile(image)) {
if (sharp::HasProfile(image) && image.interpretation() != VIPS_INTERPRETATION_LABS) {
// Convert to sRGB using embedded profile
try {
image = image.icc_transform(