eugeneware / gifencoder

Server side animated gif generation for node.js
Other
472 stars 49 forks source link

How to use gm with GIFEncoder? #11

Closed cawa-93 closed 7 years ago

cawa-93 commented 8 years ago

I want to take the picture. Make of it a few frames with a different text. And generate one GIF file. But if I try to do something simple (like the code below) the result is not what I expected.

var encoder = new GIFEncoder(32, 32);
gm('test/frame?.png').stream()
  .pipe(encoder.createWriteStream({ repeat: 0, delay: 500, quality: 10 }))
  .pipe(fs.createWriteStream('myanimated.gif'));

Result myanimated

Wodki commented 7 years ago

@cawa-93 Do you still care about your problem?

heikkipora commented 7 years ago

No answer from issuer, closing.