newtykip / canvas-gif

🖼️ Manipulate GIFs easily using node-canvas!
Other
21 stars 7 forks source link

Anyway we could load a gif from a url? #13

Closed jasperchua99 closed 1 year ago

jasperchua99 commented 1 year ago

ive been thinking of using a URL for my loads, though of asking if theres a way to load via URL instead of file directory

newtykip commented 1 year ago

You can just use a library like axios or node-fetch to fetch the image from the URL to a Buffer and feed that Buffer as an input. If you need help with that, just ask but I'm going to close this issue anyway.