mirror of
https://github.com/lovell/sharp.git
synced 2026-02-08 15:46:16 +01:00
Fix tint op by ensuring LAB and allowing negative values #1235
Add test cases for more tint colours and input interpretations
This commit is contained in:
@@ -683,7 +683,7 @@ class PipelineWorker : public Nan::AsyncWorker {
|
||||
}
|
||||
|
||||
// Tint the image
|
||||
if (baton->tintA > 0 || baton->tintB > 0) {
|
||||
if (baton->tintA < 128.0 || baton->tintB < 128.0) {
|
||||
image = sharp::Tint(image, baton->tintA, baton->tintB);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user