Post Reply 

Colorcube Analysis Script Fu

Sep 4, 2013, 19:01
Post: #1
Colorcube Analysis Script Fu
Hi all,

is there a way to find out the number of different colors within an image (or selection), preferably without having to iterate over all pixels?

"Colorcube Analysis" gives me this information, but is there a way to get this information using Script fu?

Thank you very much

F├╝rchtegott
Find all posts by this user
Quote this message in a reply
Sep 7, 2013, 06:49 (This post was last modified: Sep 7, 2013 06:53 by iForStyle007.)
Post: #2
RE: Colorcube Analysis Script Fu
(Sep 4, 2013 19:01)Fuerchtegott Wrote:  Hi all,

is there a way to find out the number of different colors within an image (or selection), preferably without having to iterate over all pixels?

"Colorcube Analysis" gives me this information, but is there a way to get this information using Script fu?

Thank you very much

F├╝rchtegott

Yes; for gif images or indexed colors workspace (image > mode > indexed...)
*PLEASE NOTE: This will reduced the colors some but you can see the majority of basic/base colors used in your image. This can give you an idea of how many different colors used.

1. First enable the colormap dialog window/box
windows > dock able dialogs... > colormap
2. Then change the colorspace of the image to indexed colors...
Image> mode> indexed...
-In options pick "Pick optimum palette" click ok

I tested it & it seems to work well Smile good luck!
You can even scroll/click through the index colors on the colormap to find out each individual hexadecimal(html) value

more info on the indexed colors colormap
http://docs.gimp.org/en/gimp-indexed-pal...ialog.html

"In order to succeed, your desire for success should be greater than fear of failure." BC
[Image: 29uocaf.png]
iFS007 tut vids on YT ~ auto color B&W landscape tut
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Run script on action rchav 2 548 Aug 13, 2018 14:57
Last Post: rchav
  Script Fu Errors Gimp 2.10.4 lightsaber jd3481 1 398 Aug 2, 2018 05:13
Last Post: paynekj
  Script-fu script to conversion pdf to image 4ever 12 8,685 Jul 17, 2018 16:01
Last Post: paynekj
  Problems with a bat script :( ThaUnknown_ 1 481 Mar 26, 2018 21:14
Last Post: paynekj
  Script-fu ordered file list vnicent 1 300 Mar 19, 2018 17:33
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS