From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 16:22:05 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 A78AD1065675 for ; Tue, 2 Sep 2008 16:22:05 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from tomts27-srv.bellnexxia.net (tomts27-srv.bellnexxia.net [209.226.175.101]) by mx1.freebsd.org (Postfix) with ESMTP id 40CAD8FC14 for ; Tue, 2 Sep 2008 16:22:04 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from toip34-bus.srvr.bell.ca ([67.69.240.35]) by tomts27-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20080902162204.NBOZ5613.tomts27-srv.bellnexxia.net@toip34-bus.srvr.bell.ca>; Tue, 2 Sep 2008 12:22:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAAsFvUhKD7BS/2dsb2JhbACza4Fp Received: from mtrlpq02-1242542162.sdsl.bell.ca (HELO [69.69.69.183]) ([74.15.176.82]) by toip34-bus.srvr.bell.ca with ESMTP; 02 Sep 2008 12:21:59 -0400 Message-ID: <48BD680F.2020102@optiksecurite.com> Date: Tue, 02 Sep 2008 12:21:35 -0400 From: FreeBSD User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: andrew clarke References: <090220081512.17537.48BD57E100051D800000448122068246930B020E080C9DCF03@comcast.net> <48BD5A8A.5080400@optiksecurite.com> <48BD5C65.9030502@optiksecurite.com> <20080902114639.f06b082a.wmoran@potentialtech.com> <48BD626F.6000401@optiksecurite.com> <20080902161755.GA99236@ozzmosis.com> In-Reply-To: <20080902161755.GA99236@ozzmosis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 16:22:05 -0000 andrew clarke a écrit : > On Tue 2008-09-02 11:57:35 UTC-0400, FreeBSD (freebsd@optiksecurite.com) wrote: > >>> Can you put the screenshots into some other format? As you mentioned, >>> the jpeg format includes metadata, which might include the creation >>> time and would cause every image to be unique from a filesystem view. >>> For example, I don't believe bitmaps include metadata, which would cause >>> them to be identical if the display were identical. >> Thank you! It did the trick. I just converted the image from png (sorry >> it wasn't jpeg...) to bmp and it works with cmp. Even diff now recognize >> both images as identical. > > Before I read this I was going to suggest you could try removing the > metadata using something like jhead. As it turns out, you say you're > using PNG format images, not JPEGs, but perhaps there's an equivalent > to jhead to work with metadata in PNG files - just as an > alternative to converting each PNG to BMP (which could be CPU intensive). > > Regards > Andrew Thank you for your "almost-suggestion" ;) The screenshot are taken once every 5 minutes and the conversion was pretty instant. I don't think it will be a problem in our case. Martin