I assume that such files can be processed and I was trying to apply
.define('png:ignore-crc=true')
method:
gm(filePath).define('png:ignore-crc=true').identify('%[8BIM:1999,2998:#1]', (err, data) => {
if (err) {
throw new Error(err);
}
return data;
}
But it did not help me with skipping such errors.
Is anybody can help me, how can I ignore CRC errors or handle it inside "identify" method?
Or maybe I should use "define()" in a different way?
Is there anyway to suppress the error or perhaps there is a way to fix the metadata before I process it?
Hi! I'm trying to identify PNG image using identify method of GraphicsMagick. For some specific files with wrong metadata, I get errors like this:
I assume that such files can be processed and I was trying to apply
method:
But it did not help me with skipping such errors. Is anybody can help me, how can I ignore CRC errors or handle it inside "identify" method? Or maybe I should use "define()" in a different way? Is there anyway to suppress the error or perhaps there is a way to fix the metadata before I process it?