mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure keepIccProfile avoids ICC transform #4186
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user