Pages: [1]   Go Down

Author Topic: Finding monochrome images  (Read 7070 times)

PeterAit

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4647
    • Peter Aitken Photographs
Finding monochrome images
« on: August 08, 2025, 09:14:57 am »

I know that LR can easily find images that have been converted to B&W in the develop module. But I want to find all images monochrome such as scans of old prints or photos converted to B&W in another app. Can this be done?

Thx
Logged

Chris Kern

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2204
    • Chris Kern's Eponymous Website
Re: Finding monochrome images
« Reply #1 on: August 08, 2025, 03:39:17 pm »

I can't imagine how Lightroom would be able to do this unless there were metadata in the image files or distinguishing features in the filenames that could be used to determine which were monochrome.  Probably the best bet would be to add a keyword to each monochrome image, then use a smart collection as a repository.  Prospectively, that could be done at the time of import of a scan or monochrome capture, or conversion of a color original — and retrospectively by locating all the monochrome images visually and adding the keyword to them.

For an automated approach, it would be necessary to create a software application that was able to recurse its way through a hierarchy of image files and detect monochrome instances from innate characteristics of the files themselves; this would presumably require different tests for rendered and raw files.  But building a robust tool would involve some heavy lifting and there still would be a secondary issue of how to flag the monochrome images so Lightroom could find them.  Preferably without modifying the files themselves.  Maybe a Lightroom plug-in?

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 21646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Finding monochrome images
« Reply #2 on: August 08, 2025, 05:30:16 pm »

No, it can't be done automatically. But keywords would go a long way towards doing this in the future.
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

PeterAit

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4647
    • Peter Aitken Photographs
Re: Finding monochrome images
« Reply #3 on: August 08, 2025, 08:27:43 pm »

I can't imagine how Lightroom would be able to do this unless there were metadata in the image files or distinguishing features in the filenames that could be used to determine which were monochrome.  Probably the best bet would be to add a keyword to each monochrome image, then use a smart collection as a repository.  Prospectively, that could be done at the time of import of a scan or monochrome capture, or conversion of a color original — and retrospectively by locating all the monochrome images visually and adding the keyword to them.

For an automated approach, it would be necessary to create a software application that was able to recurse its way through a hierarchy of image files and detect monochrome instances from innate characteristics of the files themselves; this would presumably require different tests for rendered and raw files.  But building a robust tool would involve some heavy lifting and there still would be a secondary issue of how to flag the monochrome images so Lightroom could find them.  Preferably without modifying the files themselves.  Maybe a Lightroom plug-in?

My notion was for the program to look at an image's color histogram. If the R, G, and B curves overlap perfectly then the image is monochrome. There could be an adjustable tolerance so that "almost mono" images would be tagged. For example, a scan of a sepia-toned print.
Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 21646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Finding monochrome images
« Reply #4 on: August 08, 2025, 08:30:38 pm »

My notion was for the program to look at an image's color histogram. If the R, G, and B curves overlap perfectly then the image is monochrome. There could be an adjustable tolerance so that "almost mono" images would be tagged. For example, a scan of a sepia-toned print.
https://community.adobe.com/t5/photoshop-ecosystem-ideas/how-do-i-write-a-feature-request/idi-p/12384447
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

kers

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4600
    • Pieter Kers
Re: Finding monochrome images
« Reply #5 on: August 10, 2025, 06:57:56 am »

I know that LR can easily find images that have been converted to B&W in the develop module. But I want to find all images monochrome such as scans of old prints or photos converted to B&W in another app. Can this be done?

Thx

That could be done easely if they want.
I am looking for a way to filter  bracketing exposure .
I usually treat -2 different from 0 and + 2 stop.
(request has been made already)



Logged

digitaldog

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 21646
  • Andrew Rodney
    • http://www.digitaldog.net/
Re: Finding monochrome images
« Reply #6 on: August 10, 2025, 03:59:43 pm »

That could be done easely if they want.
I am looking for a way to filter  bracketing exposure .
I usually treat -2 different from 0 and + 2 stop.
(request has been made already)
Here you go: https://regex.info/blog/lightroom-goodies/extended-search
Logged
http://www.digitaldog.net/
Author "Color Management for Photographers".

PeterAit

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4647
    • Peter Aitken Photographs
Re: Finding monochrome images
« Reply #7 on: August 14, 2025, 01:22:38 pm »


I asked ChatGPT to write a program that would do this - flag monochrome images. And within a few minutes it did so! I am very impressed! I have not tried it because I am not set up to run Python programs, but it certainly looks good.

It works by looping thru all the pixels in an image and comparing the R G and B values for each pixel. If they are the same or within a user-specified tolerance, it flags the image as mono. It can be limited to a random subset of pixels to reduce processing time. I have not tried it as I am not set up to run Python programs.
Logged

fdisilvestro

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1892
    • Frank Disilvestro
Re: Finding monochrome images
« Reply #8 on: August 14, 2025, 05:23:04 pm »

For this to work on Lightroom you would have to render the images first, or have a program smart enought to determine what would the settings in the catalog do to the original file.

PeterAit

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4647
    • Peter Aitken Photographs
Re: Finding monochrome images
« Reply #9 on: August 15, 2025, 10:45:33 am »

For this to work on Lightroom you would have to render the images first, or have a program smart enought to determine what would the settings in the catalog do to the original file.

It is not meant to integrate with LR. Just with JPG and TIFF files. It outputs a list of the files it tags as mono. Very basic to be sure.
Logged

Redcrown

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 544
Re: Finding monochrome images
« Reply #10 on: August 22, 2025, 02:10:56 am »

Just FYI... I just tripped over a YouTube video on something called digikam (https://docs.digikam.org/en/)
It claims to have the ability to find monochrome or near monochrome images based on RGB values.
Have not tried it. Have not looked for proof in the website. Don't know what file formats if can handle.
Logged
Pages: [1]   Go Up