Prevent double unpremultiply with some composite blends

This commit is contained in:
Lovell Fuller
2022-03-04 23:17:07 +00:00
parent dd3b78272a
commit 23033e2050
8 changed files with 7 additions and 2 deletions

View File

@@ -354,7 +354,7 @@ class PipelineWorker : public Napi::AsyncWorker {
}
bool const shouldPremultiplyAlpha = sharp::HasAlpha(image) &&
(shouldResize || shouldBlur || shouldConv || shouldSharpen || shouldComposite);
(shouldResize || shouldBlur || shouldConv || shouldSharpen);
// Premultiply image alpha channel before all transformations to avoid
// dark fringing around bright pixels