Comparing version 1.0.0 to 1.1.0
@@ -21,2 +21,5 @@ 'use strict'; | ||
obj.data = data; | ||
obj.adjustGamma = png.adjustGamma.bind(png); | ||
obj.bitblt = png.bitblt.bind(png); | ||
obj.pack = png.pack.bind(png); | ||
resolve(obj); | ||
@@ -23,0 +26,0 @@ }); |
{ | ||
"name": "parse-png", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Parse a PNG", | ||
@@ -31,2 +31,4 @@ "license": "MIT", | ||
"ava": "*", | ||
"file-type": "^3.8.0", | ||
"get-stream": "^2.0.0", | ||
"pify": "^2.3.0", | ||
@@ -33,0 +35,0 @@ "xo": "*" |
@@ -19,4 +19,4 @@ # parse-png [![Build Status](https://travis-ci.org/kevva/parse-png.svg?branch=master)](https://travis-ci.org/kevva/parse-png) | ||
parsePng(fs.readFileSync('unicorn.png')).then(data => { | ||
console.log(data); | ||
parsePng(fs.readFileSync('unicorn.png')).then(png => { | ||
console.log(png); | ||
/* | ||
@@ -33,5 +33,8 @@ { | ||
colorType: 2, | ||
data: <Buffer 29 48 4d ...> | ||
data: <Buffer 29 48 4d ...>, | ||
} | ||
*/ | ||
png.adjustGamma(); | ||
png.pack().pipe(fs.createWriteStream('unicorn-adjusted.png')); | ||
}); | ||
@@ -38,0 +41,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3217
23
63
5