gm icon indicating copy to clipboard operation
gm copied to clipboard

How do I use gm to run commands that return information on image, see example command

Open stellasoft-will opened this issue 9 years ago • 1 comments

convert result.png -colors 256 -format "%c" histogram:info: how would i run this in node gm?

stellasoft-will avatar Jan 21 '17 23:01 stellasoft-will

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

stellasoft-will avatar Jan 30 '17 17:01 stellasoft-will