A
A
Anastasia Eliseeva2020-11-03 10:27:06
JavaScript
Anastasia Eliseeva, 2020-11-03 10:27:06

Is it possible to create GIF from GIF + PNG/JPG on Node.JS?

Hello everyone, I recently wondered if it was possible to somehow make a processed gif from gif and png / jpg on Node.js. By "processed" I mean creating a picture of the user's rank (below is an example of what is, as well as an example of what should be the output).
As an example on Node.js, I think many people know such modules as canvas, or jimp, but alas, they only work with png / jpg files (although I do not deny that I could suddenly not know something about them).
I searched the Internet for an option and could not find anything.

Examples of pictures:
5fa1028a6465e091516604.gif
5fa1046c2c923541193170.png

What should come out at the output (yes, yes, the background is slightly different above, because I didn’t save it and made it similar):
5fa102a554be1629981761.gif

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2020-11-03
@NastyaLove

for these purposes there are console programs and the corresponding npm module for them
:
www.graphicsmagick.org
https://imagemagick.org/index.php
npm module
https://www.npmjs.com/package/gm

D
Developer, 2020-11-03
@samodum

Can. Nothing prevents you from writing such a converter yourself. PNG and gif formats are open

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question