Spaceman Diff: Diffing Images on the Command Line
github.com
github.com
This is the best utility to detect if your image has been transmogrified.
magick compare img1.jpg img2.jpg diff.jpg
If you want a numeric result, you can use "-metric AE" (and a null output file) to count the number of pixels that differ.
There is also a "fuzz" option: -fuzz 2%
Useful if you're trying to reorganize pictures after migrating out of one photo management service or another that may have resized images or altered the resolution. It doesn't attempt to display the images (that's what feh or imv are for), it only quantifies images' similarity.
I based on the logic on Geeqie's tool for finding similar images. My tool doesn't do anything that Geequie doesn't, except mine is run from the CLI.
Please, someone chime in that they use 'convert' in some process at a reactor site.
ImageMagick is old enough and I used it regularly back in the day, but I think (it's been 20 years) most of the data I got was just raw numbers so there probably wouldn't have been much call for it.
I was also working on some (non-nuclear) image processing algorithms at the time, so it's quite likely I ran 'convert' on my laptop while inside the reactor building.
https://www.oracle.com/technetwork/java/javase/downloads/jdk... has:
3. RESTRICTIONS ... You acknowledge that Licensed Software is not designed or intended for use in the design, construction, operation or maintenance of any nuclear facility.
Examples:
EXIF/IPTC/etc metadata changes (sometimes this matters; sometimes it doesn't).
Image has been rotated (this almost never matters).
Image saved with different compression parameters (usually this matters but not always).
Image saved with different resolution (ditto).
Image has been slightly edited.
The point here is that with images, data identity does not always equal file identity.