Sort images by 'count color used'

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Anarkhya
Posts: 4
Joined: Thu Jul 09, 2009 8:08 pm
Location: Nantes/France

Sort images by 'count color used'

Post 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 ;)
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Re: Sort images by 'count color used'

Post 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
Old user ON SELECTIVE STRIKE till further notice
User avatar
Anarkhya
Posts: 4
Joined: Thu Jul 09, 2009 8:08 pm
Location: Nantes/France

Re: Sort images by 'count color used'

Post 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!
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

Re: Sort images by 'count color used'

Post by eL_PuSHeR »

+1
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
Post Reply