image-js / fast-png

PNG image decoder and encoder written entirely in JavaScript
MIT License
329 stars 17 forks source link

Support for interlace image #28

Open lpatiny opened 1 year ago

lpatiny commented 1 year ago

There is an image that can not currently be decoded:

https://github.com/image-js/fast-png/blob/11a5737133b77f4854e8b682d4f2a8849e290b67/src/__tests__/decode.test.ts#L22-L26

How difficult is it to enhance the library to support this format ?

targos commented 1 year ago

I added another smaller image created with Photoshop. It's probably not too difficult to add support for the format but it requires careful reading of the spec and some refactoring to avoid repetition in the code.

PabloMartinez-Beemeral commented 6 months ago

Any update about this? Would be really good to be able to handle this files.

PitchboyDev commented 5 months ago

+1