search

Home  >  Q&A  >  body text

node.js - Can nodejs generate gif animations from png in batches? Have you ever come across this?

For example, I want to make forty or fifty GIF images at a time. Each GIF has two frames of png source images. Can I realize the function of batching png to generate GIF?

There are online GIF generators on the Internet, but they can only generate a single GIF and cannot generate multiple GIFs in batches, and there is no way to control the speed of GIF.

ringa_leeringa_lee2829 days ago818

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-16 13:24:54

    Isn’t the so-called “batch” written in a program? You can use a ready-made library to produce one in minutes.
    Just search on Google and you will find a bunch of them:

    1. https://github.com/pkrumins/n...

    2. https://github.com/eugeneware...

    The above two are relatively simple to use, and there is also a more professional graphics library that is more famous on node:

    https://github.com/aheckmann/gm

    It can easily do the functions you mentioned.

    reply
    0
  • Cancelreply