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
  Problems with a bat script :( ThaUnknown_ 1 355 Mar 26, 2018 21:14
Last Post: paynekj
  Script-fu ordered file list vnicent 1 194 Mar 19, 2018 17:33
Last Post: paynekj
  script-fu argument/parameter formats dhugg 2 312 Mar 13, 2018 00:50
Last Post: dhugg
  Request for script chlebna 1 483 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 536 Sep 4, 2017 08:51
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS