Ensure keepIccProfile avoids ICC transform #4186

This commit is contained in:
Lovell Fuller
2024-08-11 09:44:53 +01:00
parent f7ed9b7fb6
commit 2eb03b0049
5 changed files with 16 additions and 0 deletions

View File

@@ -325,6 +325,7 @@ class PipelineWorker : public Napi::AsyncWorker {
if ((baton->keepMetadata & VIPS_FOREIGN_KEEP_ICC) && baton->withIccProfile.empty()) {
// Cache input profile for use with output
inputProfile = sharp::GetProfile(image);
baton->input->ignoreIcc = true;
}
char const *processingProfile = image.interpretation() == VIPS_INTERPRETATION_RGB16 ? "p3" : "srgb";
if (