Permalink
Browse files

various changes and fixes

  • Loading branch information...
1 parent 720d8ae commit e13117b913a9345feafb55207e077a58ee136761 @pkrumins committed May 18, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −1 package.json
  2. +1 −2 png.cc
  3. +2 −0 readme.txt
View
@@ -33,7 +33,7 @@
"libpng": "1.4"
},
"directories": {
- "tests": "tests"
+ "examples": "examples"
},
"engines": {
"node": ">=0.1.93"
View
@@ -66,9 +66,8 @@ class Png : public EventEmitter {
if (!row_pointers)
ThrowException(Exception::Error(String::New("malloc failed.")));
- int i;
unsigned char *rgba_data = (unsigned char *)rgba_->data();
- for (i=0; i<height_; i++)
+ for (int i=0; i<height_; i++)
row_pointers[i] = rgba_data+4*i*width_;
png_write_image(png_ptr, row_pointers);
View
@@ -26,6 +26,8 @@ To get it compiled, you need to have libpng and node installed. Then just run
to build Png module. It will build `png.node` module.
+See also http://github.com/pkrumins/node-jpeg to produce JPEG images.
+
------------------------------------------------------------------------------

0 comments on commit e13117b

Please sign in to comment.