I haven't used it, but I believe JIMP might work for you if you're looking for a JS solution to image manipulation
For images, you'd want to use a more performant 'sharp'.
https://github.com/lovell/sharp
Benchmark
Re:FFmpeg 4.2
by rationalthug on Tuesday August 06, 2019 @06:43PM
(#20630406)
For node, there is https://github.com/fluent-ffmpeg/node-fluent-ffmpeg.
Re:FFmpeg 4.2
by ryanbharvey on Tuesday August 06, 2019 @10:01PM
(#20631408)
I've been working through this over the last year plus in node, and ended up deciding with my team earlier this year to build a library that makes this easier to understand and work with.
It's early yet, and explicit I/O mapping is not quite there at the moment, but you're welcome to check it out. Feedback is welcome.
I'm building some software on using it is kind of cumbersome