Author Topic: Find by Query: Black and White/Grayscale only  (Read 2977 times)

0 Members and 1 Guest are viewing this topic.

JohnInCC

  • Member
  • **
  • Posts: 4
    • View Profile
Find by Query: Black and White/Grayscale only
« on: 2014-12-04 20:28:35 »
Is it possible using the "Find by Query" tool to locate only images that are black and white or grayscale?  TIA.

John

Daan van Rooijen

  • Administrator
  • Sr. Member
  • *****
  • Posts: 938
    • View Profile
Find by Query: Black and White/Grayscale only
« Reply #1 on: 2014-12-04 21:13:52 »
Yes, try: tn.[colortype] = 1

This is not official (nor necessarily correct or complete), but colortypes seem to be:

1: Grayscale (either 8-bit or 16-bit) or B/W (1 bit)
2: 8-bit color
3: 24-bit color
4: 32-bit color
255: unknown color type
I'm volunteering as a moderator - I do not work for Cerious Software, Inc.

JohnInCC

  • Member
  • **
  • Posts: 4
    • View Profile
Find by Query: Black and White/Grayscale only
« Reply #2 on: 2014-12-05 17:39:43 »
Your solution works.  Thank you very much,
John

Gary

  • Sr. Member
  • ****
  • Posts: 217
    • View Profile
Find by Query: Black and White/Grayscale only
« Reply #3 on: 2014-12-13 08:44:07 »
> Yes, try: tn.[colortype] = 1
>
> This is not official (nor necessarily correct or complete), but colortypes seem to be:
>
> 1: Grayscale (either 8-bit or 16-bit) or B/W (1 bit)
> 2: 8-bit color
> 3: 24-bit color
> 4: 32-bit color
> 255: unknown color type

Daan,

Thank you for this!  I used the '255' and found a few bad image files I was unaware of.  You are the smartest boy in class!

Cheers,
Gary