As I mentioned in the title, how do I replace a color with a image in NodeJS? Like a green screen
Asked
Active
Viewed 1,507 times
2
-
Hey mate i never used it but on first search i found this https://www.npmjs.com/package/replace-color, maybe try it out? :) – halilcakar Jun 18 '20 at 00:47
-
It replaces it with color but I want it to replace it with the image. – Vexop Jun 18 '20 at 00:49
-
Ohh :D there are examples about green screen. Let's keep searching. – halilcakar Jun 18 '20 at 00:50
-
Maybe this https://github.com/lovell/sharp or this https://medium.com/@rossbulat/image-processing-in-nodejs-with-jimp-174f39336153 – halilcakar Jun 18 '20 at 00:51
-
Bdw I'm not sure if nodejs is the best option for playing around with images. Maybe send a request to php or python server and do everything there? – halilcakar Jun 18 '20 at 00:54
-
I will try. Thanks for your help Halil kardeşim :D – Vexop Jun 18 '20 at 00:55
2 Answers
0
I would start out by saying that node is probably not the best thing to do this in. But I usually use https://sharp.pixelplumbing.com/ for all my image processing in node.

German Gamboa
- 81
- 4