Im currently trying to figure out how to get an individual pixel using the Node.js gm graphicsMagic wrapper. My overall end goal is to get the top 10 colors with percentages in an image. I am trying to write a few functions that will get me my result but for the life of me I can't figure out hwo to get the pixel itself using the gm wrapper. It seems that GraphicsMagick has a GetPixels method but I havent had luck being able to call it. Any help would be greatly appreciated.
Thanks!