How to compare 2 images from command line



Hi everyone,

I'm trying to determine if 2 jpeg images are identical. The images are screenshots taken with scrot at different times. The point is to know if the display is working correctly. I tried to use 'diff' but without success, probably because of the metadata included in the image. I also tried the 'compare' command from imagemagick, but it produce an image containing the difference between the 2 images instead of telling me if both images are identical.

So, my question is what are you using to determine if 2 images are identical?

I'm using FreeBSD 7.0 and I need to be able to script this comparaison for an integration in Nagios.

Thank you,

Martin
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: The sickening reality of high ISO on a P&S
    ... Go to any camera review and you'll see all the support you need. ... There are cases where the FZ8 ... There are no images to see... ... I can't provide images to compare because I wasn't at those particular ...
    (rec.photo.digital)
  • Re: color calibration of microscopic images
    ... filters with a pore size of 0.025 um can be recommended as white ... tell you that I have acquired images of the grey patches of the Gretag ... I might also want to compare not color images but other properties ... (mass spectra, visible-light spectra, etc), but this will come ...
    (sci.techniques.microscopy)
  • Re: Compare files?
    ... a file compare utility to claim them as different. ... images that look similar. ... And the software it DOES list is NOT the file I have, so beware anything should you decide to download from there. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: D80 noise versus Rebel XTi noise at 1600 ISO
    ... Rich didn't have any conclusions, ... data, nor any equalized testing criteria, and the crops could be ... false data and still has false images and claims on his site). ... Where's the exif and original image so we can compare? ...
    (rec.photo.digital.slr-systems)
  • Re: 35mm film scanner questions
    ... I have found that whenever there is an attempt to directly compare digital ... and analog images, there is always something that renders the comparison ... don't know of any digital cameras that come even close to that...what can we ... the resolving ability of film and film camera lens has ...
    (rec.photo.digital)