From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 15:34:12 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 0C8721065676 for ; Tue, 2 Sep 2008 15:34:12 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 293358FC1D for ; Tue, 2 Sep 2008 15:34:10 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m82FXxIi018373; Tue, 2 Sep 2008 17:33:59 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m82FXxEs018370; Tue, 2 Sep 2008 17:33:59 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 2 Sep 2008 17:33:59 +0200 (CEST) From: Wojciech Puchar To: FreeBSD In-Reply-To: <48BD5574.7010107@optiksecurite.com> Message-ID: <20080902173310.E18363@wojtek.tensor.gdynia.pl> References: <48BD5574.7010107@optiksecurite.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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:34:12 -0000 > 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 cmp does byte-to byte comparision. if you want to make sure uncompressed bitmaps are the same then uncompress (cmp) and then compare