node-libpng icon indicating copy to clipboard operation
node-libpng copied to clipboard

Some pngs will cause unexpected exit

Open sbfkcel opened this issue 5 years ago • 3 comments

Reading some files based on docker alpine will cause unexpected exit.

The attached icon is a test png.

test.js

const libpng = require('node-libpng');
let result = libpng.readPngFileSync('./icon.png');

console.log(result);

image

icon.png.zip

sbfkcel avatar Nov 05 '20 07:11 sbfkcel

Are some PNGs working? Or is it failing with all?

Prior99 avatar Nov 19 '20 10:11 Prior99

Some PNGs failed. Not all are invalid.

sbfkcel avatar Nov 19 '20 13:11 sbfkcel

After confirming the test, when the "Interlace" option is checked, it will cause unexpected errors.

sbfkcel avatar Sep 28 '21 13:09 sbfkcel