Commit graph

5 commits

Author SHA1 Message Date
Zachary Holyszko
257a4c972d
fix(buffer): migrate to safe constructor methods (#134)
Co-authored-by: Zachary Holyszko <zholyszko@dmdconnects.com>
2020-04-09 15:48:18 +02:00
Cory Snider
0b5822a4be Emit an error if the image is truncated (#118)
If the image data is truncated on a chunk read boundary, PNGjs would
hang. Now it emits an error event.
2019-03-08 06:31:01 +01:00
Liam McLoughlin
decc76f686 Return a correct alpha value in the metadata callback when a tRNS chunk is present (#119)
* Fix "metadata" alpha property to respect presence of tRNS chunk

* Emit metadata at first IDAT chunk

* Fix typo
2019-03-08 06:27:54 +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
Luke Page
109c83eba2 add the tests from pngparse - fixes #12 2015-08-08 16:39:29 +01:00