Commit graph

24 commits

Author SHA1 Message Date
Gusts Kaksis
c76df92fd4 Moved packer processing options to Packer class. Use zlib deflate options in PackerSync. 2015-12-04 10:35:19 +02:00
Gusts Kaksis
bc271fcf38 Added missing "use strict" and fixed an ESLint no-param-reassign warning 2015-12-03 18:31:56 +02:00
Gusts Kaksis
ac815b87ee Implemented symetric PNG.sync.write to complement PNG.sync.read 2015-12-03 18:00:33 +02:00
Gusts Kaksis
42fd49f0b6 Begin to lay out a symetric packer api for synchronous usage. 2015-11-25 14:36:22 +02:00
Luke Page
d7a8638b72 do not use the output format to determine the input one 2015-09-13 19:19:32 +01:00
Luke Page
159221c115 move color type constants to constants. Revert change requiring default options on null. 2015-09-13 18:40:53 +01:00
michuNEEO
6467ad747b update readme, fix stlye issues 2015-09-13 14:41:40 +02:00
michuNEEO
83d60edeaf poc to support colortype 2 2015-09-13 14:31:22 +02:00
Martin von Gagern
a0596a58c4 Introduce deflateFactory option to packer
The main application motivating this addition is the creation of
reproducible compression results.  Since `zlib` is shipped with node.js, we
have no control over its version via npm.  To guarantee reproducible
results, other libraries (like pako) could be used, with a fixed version
number to guarantee consistent behavior.  This modification provides a hook
to allow such usage.
2015-08-28 09:59:28 +02:00
Luke Page
adf5216a49 Tidy up filtering. 2015-08-07 07:59:57 +01:00
Luke Page
79465895af Gamma division constant 2015-08-06 18:50:36 +01:00
Luke Page
c450597b09 Merge branch 'master' of github.com:lukeapage/node-pngjs2 2015-08-05 17:00:47 +01:00
Luke Page
ff9d322a36 add ability to write gamma chunks 2015-08-05 17:00:37 +01:00
Luke Page
41c5a14950 Remove copyright from individual files. It is included in the project once. 2015-08-04 23:03:38 +01:00
Luke Page
99eae1c711 Resolve remaining style issues 2015-08-04 23:00:10 +01:00
Luke Page
bf5ae3c54e configure the rest of eslint. 2015-08-04 21:32:22 +01:00
Luke Page
8155d300f0 linting and tidy 2015-08-04 19:27:18 +01:00
Luke Page
f7c70a92b4 Interlace support 2015-08-02 11:06:21 +01:00
Luke Page
d601f60c79 Support for 1,2,4 bits PNG 2015-08-01 13:03:38 +01:00
Luke Page
807ffcd66f Support for synchronous reading of PNG's 2015-08-01 13:03:06 +01:00
Alexandre Paré
fa9693a42c Fix the falsy 0 options
if you set the options deflateStrategy to 0, it will set 3
2015-07-30 18:38:23 +01:00
Pieterjan De Potter
303e231a7e added zlib deflateStrategy option, default to Z_RLE 2012-11-28 15:40:27 +01:00
Kuba Niegowski
14b9f6ddcf streams 2012-08-22 23:46:05 +02:00
Kuba Niegowski
43a7c3dc4e new experimental streams 2012-08-22 11:30:12 +02:00