Is there any way for my node.js app to combine PNG and a GIF into one file, one as the foreground, second as the background, and then output it?
Asked
Active
Viewed 698 times
1
-
1You might have to use ffmpeg or another image manipulation program. Here is an example: [_"Overlay animated images with transparency over a static background image using ffmpeg?"_](https://stackoverflow.com/a/10507897/1762224) – Mr. Polywhirl Feb 23 '21 at 19:51
-
is there any way to integrate FFmpeg into js, or can you just do it with commands in the command line? – woodendoors7 Feb 24 '21 at 09:20
-
You may want to look into the [fluent-ffmpeg](https://www.npmjs.com/package/fluent-ffmpeg) or [sharp](https://sharp.pixelplumbing.com/) libraries. – Lauren Yim Feb 27 '21 at 06:50