Thread

Posted on Thu Apr 24 11:19:26 2008 by ignaciogggg
Filtering results like Flickr
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
Direct Responses: 7751 | Write a response
Posted on Thu Apr 24 14:25:28 2008 by exiftool in response to 7747
Re: Filtering results like Flickr
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
Direct Responses: 7754 | Write a response
Posted on Thu Apr 24 19:12:07 2008 by ignaciogggg in response to 7751
Re: Filtering results like Flickr
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.
Direct Responses: 7755 | Write a response
Posted on Thu Apr 24 19:34:28 2008 by exiftool in response to 7754
Re: Filtering results like Flickr
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
Direct Responses: 7760 | Write a response
Posted on Thu Apr 24 20:44:37 2008 by ignaciogggg in response to 7755
Re: Filtering results like Flickr
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:
Array ( [0] => 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:
Array ( [ExposureTime] => 4 [Model] => 'A830' [FlashpixVersion] => 0100 ... }
So, with that array I can print the field whatever I want. Sorry too many questions.
Direct Responses: 7761 | Write a response
Posted on Thu Apr 24 20:51:29 2008 by exiftool in response to 7760
Re: Filtering results like Flickr
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
Write a response