ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:20 AM

Title: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by ignaciogggg on 2008-04-24 08:19:26-07]

Hello, I'm using Exiftool over the command line, I'm trying to get the info like Flickr
check here

Check the tags flickr is showing, I want something like that, just those tags, in the same order, is that possible with exiftool?

I mean, I don't want just those tags in that case (I know how to do that), I want to know how flickr is getting and splitting the data from the photos.

Ideas?

Phil: I sent you an email with this question, I forgot the forum, sorry.

Thanks to all
Title: Re: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by exiftool on 2008-04-24 11:25:28-07]

I already replied to your email:

Interesting, thanks for the link.  I didn't know that Flickr displayed
makernote information.  From looking at this, it is clear to me that
Flickr used ExifTool as a source when developing their software
because many of the tag names they use are ones that I created
for information I decoded myself.  But they have made a number
of omissions in the value conversions, and haven't applied proper
scaling to convert the values into usable units.

So yes, exiftool can display all this information in the same order,
but the values won't all be the same because exiftool converts them
properly.

-------

In your forum post you also ask how flickr is getting and splitting
data from the photos.    They have apparently been selective about
the information they extract, because there is a lot of information
that they are not decoding.  So I would assume that they have written
code similar to exiftool for parsing the makernote structure in the
images, but haven't included tags that they feel are not very useful.

- Phil
Title: Re: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by ignaciogggg on 2008-04-24 16:12:07-07]

Good, you answer just what I wanted. Thanks.

I'm not a professional photographer, so, I don't know if the information they showing is good or not, so if you say "haven't included tags that they feel are not very useful", I trust in you.

I'm trying to save the exifdata from the photos in a db, but I don't want to save/show 300 fields, I just want max 100. The most important ones. I filter the tags with IFD0 and ExifIFD, is there another group which its really important for photographers?

Thanks again, sorry to many questions, I'm newbie with exif and perl.
Title: Re: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by exiftool on 2008-04-24 16:34:28-07]

The answer depends on how many different camera models
you use.  You could easily hand-pick a set of interesting tags if you
only have a few different models.  Otherwise, it will be harder
to decide which makernote information to include.  The IFD0/ExifIFD
information is basic, and doesn't include interesting things like the
camera serial number, lens model, focus distance, and sometimes
even ISO which may exist in the makernote information.

I suggest defining a
shortcut
tag
to represent all of the tags
you are interested in.  There are already pre-defined "Canon",
"Canon20D" and "Nikon" shortcuts that may be a good starting
point.  See the
config
file documentation
for an example of how to create user-defined
shortcut tags.

- Phil
Title: Re: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by ignaciogggg on 2008-04-24 17:44:37-07]

This is not for my personal use, I'm trying to use exiftool like a new tool for my social web site. Thats why I'm very confuse with all this.
Ok, I decided to use IFD0/ExifIFD/GPS/MakerNotes.
Now I want to see a little of code please! I'm retrieving the array like this:
Code:
Array
(
   
  • => ExposureTime             : 4
        [1] => Model                    : A830
        [2] => FlashpixVersion          : 0100
        [3] => ExifImageHeight          : 960
        [4] => ResolutionUnit           : inches
        [5] => LightSource              : Fine Weather
        [6] => MeteringMode             : Average
        [7] => ExposureMode             : Auto
        [8] => ISO                      : 80
        [9] => XResolution              : 72
    }
It could be more useful for me retrieving the array like this:
Code:
Array
(
    [ExposureTime] => 4
    [Model] => 'A830'
    [FlashpixVersion] => 0100
    ...
}
So, with that array I can print the field whatever I want. Sorry too many questions.
Title: Re: Filtering results like Flickr
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by exiftool on 2008-04-24 17:51:29-07]

If you write a Perl script and call the ExifTool functions via
the API, you can access the tag in an associative array like
this.  See the
API
documentation
for details and coding examples.

- Phil