Closed blvd20 closed 1 year ago
https://github.com/image-js/fast-png/blob/9563e3dcc66bd402c3a969dfe1027bf897ab9296/src/PngDecoder.ts#L212
At least, there should have a this.skip(length).
this.skip(length)
Can you share an image that causes this issue so we can use it in unit tests?
@targos
Thanks. Fixed in version 6.2.0.
The field is now correctly decoded and its values can be read from img.transparency.
img.transparency
https://github.com/image-js/fast-png/blob/9563e3dcc66bd402c3a969dfe1027bf897ab9296/src/PngDecoder.ts#L212
At least, there should have a
this.skip(length)
.