gm
gm copied to clipboard
How do I use gm to run commands that return information on image, see example command
convert result.png -colors 256 -format "%c" histogram:info: how would i run this in node gm?
anyone else interested its this
gm(img).in('-colors', 256)
.in('-format', '%c')
.write('histogram:info:-', (err, result) => {
});
result being a list of number of pixels against a colour