I am trying to convert a gif into a png using graphicsmagick on node.js. In their documentation they have the following code:
// pull out the first frame of
According to the source you can use .selectFrame(0).
.selectFrame(0)
gm(streamOrBuffer) .selectFrame(0) .write('/path/to/firstframe.png', function(err) { if (err) console.log(err); });