I have a directory that contains a very large number of JPG images (scans of paper documents), which are all currently sRGB.
Many but not all of them don't actually have color, or have color only as the background (e.g. colored paper or slightly off-white scan).
I would like to mass-convert those images (but not images that have real color) to grayscale, to save disk space.
I'm guessing that there is some way to do this with ImageMagick, but I don't know how. Suggestions?