How to count colors of *.tif and *.gif files??
Posted: 2007-03-01T01:05:01-07:00
I have problem to count the colors of *.tif and *.gif image format. To count the colors of *.jpg I used the command:
This works fine for .jpg file format. But I am having problem with *.tif and *.gif file format. I get the number but I think it's not correct coz it is too huge number (larger than the sum of colors of individual .jpg file format). The problem is *.tif or *.gif files contains more than one *.jpg images. Is there any bash command to count the colors of .tif or .gif directly?? Or I need to split them to .jpgs and count seperately for each jpgs!! Any help will be appreciated!! ThanX in advance !!!!
With Regards,
Prakash Rai
Code: Select all
identify -format %k img.jpg
With Regards,
Prakash Rai