node-png
node-png copied to clipboard
A nodejs C++ module that given a buffer with RGB or RGBA values creates a PNG image (in memory).
License?
It doesn't look like this code has a license. I'm interested in adapting it for an Open Source project, but I can't unless I know that the code isn't proprietary.
Various build errors. Full log of the build errors is attached. Any help appreciated, thanks. [node-png - build dump.txt](https://github.com/pkrumins/node-png/files/191733/node-png.-.build.dump.txt)
``` mirekimac:pngtest mirek$ node -v v0.12.0 mirekimac:pngtest mirek$ npm install png --save child_process: customFds option is deprecated, use stdio instead. CXX(target) Release/obj.target/png/src/common.o ../src/common.cpp:10:17: error: calling a protected constructor of class...
cannot build under nodejs v4.1.2 with node-gyp v3.0.3
some coffeescript to test proper usage ``` #!/usr/bin/iced png_encoder = require 'png' fs = require 'fs' local_buffer = new Buffer 2*2*4 local_buffer.fill 0 size_x = 2 size_y = 2 img...
Hi, Here is the code I have (small changes from existing example) var fs = require('fs'); var sys = require('sys'); var Png = require('node-png').PNG; var Buffer = require('buffer').Buffer; // the...
I have a non-standard, but not-uncommon Homebrew config which causes this module to fail to build on OS X. Specifically, Homebrew is installed by [Boxen](https://boxen.github.com) under `/opt/boxen` instead of `/usr/local`:...
Stack-based encoders are gone for now. If any interest arises, I could look into porting those, too.
It fails with MSBuild 12.0.31101 giving dozens of errors, e.g. c:\users\jindrichvavruska\appdata\roaming\npm\node_modules\png\src\png.h(9): error C2504: 'ObjectWrap' : base class undefined (..\src\png.cpp) ``` c:\users\jindrichvavruska\appdata\roaming\npm\node_modules\png\src\png.h(22): error C2143: syntax error : missing ',' before '&'...