Skip to content

Color tint feature not working as expected #1235

@wezside

Description

@wezside

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); });

red
green
blue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions