Page 1 of 1

Sort images by 'count color used'

Posted: Thu Jul 09, 2009 9:48 pm
by Anarkhya
Hello,

I would enjoy a feature which allows me to browse images by their 'real' color count,
and I insists on 'real' because XnView is already able to sort image by X bits color space.
But the XnView browser can't determine if the actual palette matches the actual color space...

Let's take an example, this pixel piece is marked as 8-bit 256 colors by xnview,
but among this 256 colors palette only 32 are used, so the real color count is 32
Question is: How to make xnview aware of the colors used instead of global palette?
: Image

If XnVew browser could provide such features, it would save me hours & hours of manually filtering pics by their color count...
besides, it would considerably helps me building an amiga pixel museum.

Thanks in advance for taking into consideration this not-utterly-popular kind of feature ;)

Re: Sort images by 'count color used'

Posted: Fri Jul 10, 2009 1:17 am
by Clo
:arrow: Anarkhya

:) Hello !

• Indeed, XnView is able to count the colours image per image, but there is no way -AFAIK- then to save this information to make a sorting from.
• Your sample is BMP, so its weight (Bytes) is always related to its size (X×Y pixels)…
- I made a test from that sample, saving two versions as 33 and 34 colours, then converting to PNG in a batch, the weights follow the counts of colours :
sample_original.png 30,018 Bytes = 32 colours
sample2.png -------—30,021 Bytes = 33 colours
sample3.png -------—30,025 Bytes = 34 colours
• That isn't very helpful, but produces a sorting by size corresponding to the real count of colours…
- A better way - without that tedious creation of PNGs - should be to get a new command able to count the colours of each image, then to save these indications as a comment in a descript.ion file from which you would see them as info-texts i.e. in the Browser.
- Finally, a real direct sorting by colours count seems hard to realize, and IMHO, should be rather slow…

:mrgreen: KR
Claude
Clo

Re: Sort images by 'count color used'

Posted: Sat Jul 11, 2009 12:36 am
by Anarkhya
but there is no way -AFAIK- then to save this information to make a sorting from
arg! ok, I have to accept this hard fact.
sorting by size corresponding to the real count of colours
That's indeed the best tip and the only one I have (combined with the color space sorting) to sort my huge library.

Anyway, thanx for the consideration!

Re: Sort images by 'count color used'

Posted: Sat Jul 11, 2009 9:02 am
by eL_PuSHeR
+1

Re: Sort images by 'count color used'

Posted: Tue Apr 27, 2010 6:04 pm
by Hobbe
+1 Easily one of the most useful features I can think of.