Open Frisk17 opened 4 years ago
Can you try downloading the images first and then passing the file paths into merge-images
like in the readme example:
https://github.com/lukechilds/merge-images#nodejs-usage
However it looks like node-canvas now supports loading images via URLs (https://github.com/Automattic/node-canvas#imagesrc) so this should work. I don't have time to look into this right now but I'll accept a PR if you can resolve the issue.
For now a quick solution would probably be for you to just download the images before passing to merge-images
.
I have installed Canvas node module but I'm still getting this error. Here's the code:
I actually want to send the image but that's irrelevant to this issue so I just tested by sending the message and it's throwing that error before it so what could be the issue?