Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An efficient way to detect corrupted png files?

Tags:

linux

png

libpng

I've written a program to process a bunch of png files that are generated by a seperate process. The capture mostly works, however there are times when the process dies and is restarting which leaves a corrupted image. I have no way to detect when the process dies or which file it dies one (there are ~3000 png files).

Is there a good way to check for a corrupted png file?

like image 335
dave Avatar asked Mar 05 '10 01:03

dave


1 Answers

I know this is a question from 2010, but I think this is a better solution: pngcheck.

like image 62
Artem Russakovskii Avatar answered Sep 28 '22 09:09

Artem Russakovskii