From owner-freebsd-questions@FreeBSD.ORG Thu Aug 23 17:14:24 2012 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 ADECC1065672 for ; Thu, 23 Aug 2012 17:14:24 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 6548F8FC08 for ; Thu, 23 Aug 2012 17:14:24 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q7NHEDqT027984; Thu, 23 Aug 2012 11:14:13 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <503664E3.8060808@dreamchaser.org> Date: Thu, 23 Aug 2012 11:14:11 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120609 Thunderbird/13.0 MIME-Version: 1.0 To: Polytropon References: <5035C6E8.3050108@dreamchaser.org> <20120823163839.e2cf7432.freebsd@edvax.de> In-Reply-To: <20120823163839.e2cf7432.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 23 Aug 2012 11:14:14 -0600 (MDT) Cc: FreeBSD Mailing List , bah@bananmonarki.se Subject: Re: EXIF inspector X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2012 17:14:24 -0000 several responses combined to save bandwidth... On 08/23/12 08:38, Polytropon wrote: > On Thu, 23 Aug 2012 00:00:08 -0600, Gary Aitken wrote: >> For the photo folks -- >> >> What do you use for inspecting EXIF data? >> I've tried >> exif >> exiftags >> exifprobe >> and none of them show the full compliment of tags present on my oly pen-ep3. >> In particular, they omit most of the vendor specific stuff, >> and they seem to display different parts of things, but not everything. > > I've been using exiv2 (port graphics/exiv2) which fits my needs. > Here's an example of its output: > > % exiv2 cam/img_6842.jpg > File name : cam/img_6842.jpg > File size : 2887326 Bytes > MIME type : image/jpeg > Image size : 2816 x 2112 > Camera make : Canon > Camera model : Canon PowerShot S3 IS > Image timestamp : 2011:08:19 09:14:42 > Image number : 120-6842 > Exposure time : 1/50 s > Aperture : F2.7 > Exposure bias : 0 EV > Flash : No, red-eye reduction > Flash bias : 0 EV > Focal length : 6.0 mm > Subject distance: 68 > ISO speed : 100 > Exposure mode : Easy shooting (Auto) > Metering mode : Multi-segment > Macro mode : Off > Image quality : Fine > Exif Resolution : 2816 x 2112 > White balance : Auto > Thumbnail : image/jpeg, 5981 Bytes > Copyright : > Exif comment : > > See "man exiv2" for details. It's a really versatile program > which can be excellently integrated into scripts. > > In case you need more info from a photo file, use the "strings" > utility provided by the system and parse its output. Thanks This is rather weird. I had tried exiv2 and concluded it did not report everything because on a windows system I had previously used PhotoME to ascertain that the image stabilization parameter for my camera was in a field whose tag name was "ImageQuality3", and exiv2 does not report anything with "uality" in it. However, I now see that it does report a string called "Exif.OlympusCs.ImageStabilization" of the same type with the corresponding value. Strings reports neither tag. That makes sense, since exif tags are numerically encoded and not text, so I don't think strings is particularly useful. Upon further investigation, it appears that the choice of string to print for a tag is probably a translation provided by the program, not the image file. A strings on /usr/local/lib/libexiv2.so.10 shows: Image stabilization ImageStabilization Image Stabilization for the Sony DSLR-A100 Image stabilization data Image Stabilization Data ImageStabilizationData Image Stabilization A100 ImageStabilizationA100 Digital Image Stabilization and also specific tags for different camera manufacturers, e.g. Exif.OlympusCs. etc. bah -- exif doesn't report all the tags warren -- thanks, I thought I tried p5-Image-ExifTool but in looking back at my notes I have a thing that says "install ExifTool" and its not there so obviously I didn't to that. Will check it if exiv2 doesn't work out. Gary