I have a folder of like 400k images and I need to find any image that is just black/white or just black or just white or its color profile isnt sRGB.
Currently I do this via -identify and just .contains check it, but it takes ages, it does 5k images within a couple hours, its fairly slow, surely theres a better option then that?
Find images that are not sRGB (Black/White/Colorless)
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Find images that are not sRGB (Black/White/Colorless)
I suppose you mean that you use "identify -verbose"? That does more work than you need, so you could do it more quickly.
Is your IM HDRI? If it is, and you don't have floating-point images, then you could use an integer IM for faster speeds.
If many of your image files are not sRGB or do not have three channels, you might use exiftool first to filter them out.
Is your IM HDRI? If it is, and you don't have floating-point images, then you could use an integer IM for faster speeds.
If many of your image files are not sRGB or do not have three channels, you might use exiftool first to filter them out.
snibgo's IM pages: im.snibgo.com