diff --git a/README.md b/README.md index b8b6e5b..29a4625 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ About ======== Simple PNG encoder/decoder for Node.js with no native dependencies. +Based on `node-png`, which is a patched version of `pngjs`. + +Unsupported Files +================= + + * Interlace + * 1,2,4 & 16 bit + + Tested using [PNG Suite](http://www.schaik.com/pngsuite/). To see tests, run `node test/test` and `view test/list.html`. + Installation =============== ``` @@ -144,7 +154,7 @@ Changelog ### 0.4.3 - 19 June 2014 - fixed fill - fix(chunkstream): max call stack thrown when parsing large pngs - + ### 0.4.0 - Jun 05 2013 - fixed reading of destroyed input stream diff --git a/test/list.html b/test/list.html index 384103b..392cf4a 100644 --- a/test/list.html +++ b/test/list.html @@ -11,17 +11,17 @@

Filtering

-
-
-
-
-
-
-
-
-
-
-
+ filter changing per scanline, grayscale, 4 bit
+ no filtering, colour, 8 bit
+ no filtering, grayscale, 8 bit
+ filter 3, colour, 8 bit
+ filter 3, grayscale, 8 bit
+ filter 2, colour, 8 bit
+ filter 2, grayscale, 8 bit
+ filter 1, colour, 8 bit
+ filter 1, grayscale, 8 bit
+ filter 0, colour, 8 bit
+ filter 0, grayscale, 8 bit

Ancilary chunks



diff --git a/test/test.js b/test/test.js index 6df5102..dad6869 100644 --- a/test/test.js +++ b/test/test.js @@ -15,17 +15,16 @@ fs.readdir(__dirname + '/in/', function(err, files) { if (file.match(/^x/) || file.match(/^...i/) || // interlace file.match(/^......(01|02|04|16)/) || // 1/2/4/16 bit - file.match(/^basn3p(01|02|04)/) || // 2/4/16 colour palette - file.match(/^s/) // odd sizes + file.match(/^basn3p(01|02|04)/) // 2/4/16 colour palette ) { expectedError = true; } fs.createReadStream(__dirname + '/in/' + file) .pipe(new PNG()) - .on('error', function() { + .on('error', function(err) { if (!expectedError) { - console.log("Error reading " + file); + console.log("Error reading " + file, err); } }) .on('parsed', function() {