
I've created a batchfile that makes the work me and my colleagues need to do a lot easier.
Not sure what I am allowed to say, but basically we need to (amongst other things) check PNG's to see if they meet a bunch of requirements.
One of those requirements is that they must contain two or three specific colors, that (the used colors) plus all the other information we need to check is gathered with a batchfile that uses pngcheck.exe, ImageMagicks convert.exe and Swiss File Knife to do that.
When using convert to output a list of used colors, the output looks like:
Code: Select all
# 12293: ( 0, 0, 0,255) #000000 black
# 48987707: (255,255,255, 0) #FFFFFF00 rgba
Command used:
Code: Select all
convert.exe "data\%%a" -format %%c histogram:info:- >> output.txt
At first glance, but haven't confirmed that, this seems to happen with PNG's that have more than 1 or 2 IDAT chunks.
Just thinking out loud, I think it's because the output contains the amount of pixels that are used by every color. Could it be that getting that kind of information could cause this problem?
If yes, how can I use convert in such a way that it only output's used colors and nothing more that could make convert take longer to finish?
With regards,
Bart