Closed gmuc closed 3 years ago
I use the code:
const gm = require('gm');
gm('./in.png').opaque('#ccffff').fill('black').write('./out.png', (err) => { console.log("recolored file saved"); });
But it change more than pixel of color '#ccffff'! But I need 1:1 mapping! How can I solve this?
Module replace-color do this correct, but you can use only one color -> bad!
If I understand this right https://legacy.imagemagick.org/Usage/color_basics/#replace
I use the code:
const gm = require('gm');
But it change more than pixel of color '#ccffff'! But I need 1:1 mapping! How can I solve this?
Module replace-color do this correct, but you can use only one color -> bad!