Idealy something like
Code: Select all
convert image.png ico:- |
compare -metric PNE ico:- image.png null:
However that does not gurantte the image, as it only checks a write and read, reproduces the original image exactly. As such a quick eyeball look may still be needed. But it does provide a quick automated check that the format is working reasonably well.
My own test shows the images are totally different, and a eyeball test...
Code: Select all
convert image.png ico:- | display ico:-