Re: Creating Windows icons
Posted: 2008-09-30T18:16:22-07:00
If it is then yes. With (small) examples if posible,
Idealy something like
Should return '0' as in there are no color differences between a PNG and a ICO image.
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...
shows the write-read cycle has indeed inverted the alpha on my IM v6.4.4-2 svn build.
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:-