meltingice / CamanJS

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

Save in NodeJS uses toBuffer() instead of making a Stream #19

Open meltingice opened 12 years ago

meltingice commented 12 years ago

When using createPNGStream/createJPEGStream, the image failed to write beyond the first chunk of data. I'm not sure if this is a bug with node-canvas, cairo, or CamanJS itself. Will need to investigate more.

rwaldron commented 12 years ago

I think there's an ImageMagick module for node now, might be worth comparing the performance, ease of use,etc

rwaldron commented 12 years ago

Whoops, I'm on my mobile and hit the close button accident, sorry about that!

meltingice commented 12 years ago

No worries, thanks for the heads up on Imagemagick in node. I'll check it out. The only thing I'm afraid of is the code becoming really bloated because the Imagemagick workflow differs a lot from the normal Canvas element.

rwaldron commented 12 years ago

Say no to bloat. Could it be developed as a drop in replacement with a matching API?