meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Load images via URL in Node #121

Closed lukaszfiszer closed 11 years ago

lukaszfiszer commented 11 years ago

This small PR allows to load image by passing its url to the Caman constructor:

Caman("http://path/to/image.jpg", function () {
  ...
});

This behaviour is already possible in the browser, so I think I'd be nice to have the same functionality on the server. Uses only core http module.

I wanted to update the documentation as well, but wasnt sure where are the sources.

meltingice commented 11 years ago

Great idea, thanks!