From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 15:13:52 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 442A9106567F for ; Tue, 2 Sep 2008 15:13:52 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) Received: from smtp.vub.ac.be (relayhost.vub.ac.be [134.184.129.111]) by mx1.freebsd.org (Postfix) with ESMTP id D7E578FC25 for ; Tue, 2 Sep 2008 15:13:51 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcBAI/mvEikD30E/2dsb2JhbAAIs1yBaQ Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.vub.ac.be with ESMTP; 02 Sep 2008 17:13:50 +0200 From: Julien Cigar To: FreeBSD In-Reply-To: <48BD5574.7010107@optiksecurite.com> References: <48BD5574.7010107@optiksecurite.com> Content-Type: text/plain; charset=utf-8 Date: Tue, 02 Sep 2008 17:13:16 +0200 Message-Id: <1220368396.3680.10.camel@frodon.be-bif.ulb.ac.be> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: How to compare 2 images from command line X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 15:13:52 -0000 /sbin/md5 image1.ext image2.ext ? On Tue, 2008-09-02 at 11:02 -0400, FreeBSD wrote: > 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jcigar@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52