-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Color tint feature not working as expected #1235
Copy link
Copy link
Closed
Description
If I use the following code I would expect three tinted images, a red tint, green tint, blue tint. Here is what the code produces:
var c = color({r: 255, g: 0, b: 0});
//var c = color({r: 0, g: 255, b: 0});
//var c = color({r: 0, g: 0, b: 255});
var tmp = __dirname + '/../public/upload/tmp/monalisa.jpg';
sharp(tmp)
.tint(c)
.toFile(__dirname + '/../public/upload/tmp/output.jpg')
.then(function(data)
{
})
.catch(function(err) { console.log(err); });
Reactions are currently unavailable


