meltingice/CamanJS — pull request #28 by jesperp (2012-08-03 23:05:13+00:00)
Title: support loading image from buffer in Node

loadNode assumes first argument to Caman() is a string/path. Can we make it support Buffer as well? The underlying node-canvas supports this: https://github.com/LearnBoost/node-canvas#imagesrcbuffer

I want to be able to do something like this:

.getfile(query, function(err, buffer) {
Canvas(buffer, function() {
...
})
})

Comments on commit welcome, just made it as simple as possible