PDA

View Full Version : Parsing IPTC tags


TomKa
20th of May 2003 (Tue), 05:45
Hello from Italy,

I'm a newbie in EE, after a search about galleries I installed EE this morning without problems.

So here are a few questions:

I archive my pics with FotoStation and put the necessary IPTC-tags into the jpeg files. Is it possible in EE to extract the IPTC-tags to insert them fully automated into the description and the keyword etc. ?

Here are some links about handling these data in PHP (I'm no PHP geek):

IPTC Info Extractor Perl Module
http://multipart-mixed.com/photo/iptc.html

IPTC parse:
http://www.php.net/manual/tr/function.iptcparse.php

quote:_____________________________

Sebastian Delmont has written a new class to handle JPEG metadata including EXIF and IPTC [1].

require_once 'Image/JPEG.php';

$jpeg =& new JPEGInfo('images/photos001.jpg');

echo $jpeg->getExifField("ApertureValue");
echo $jpeg->getIPTCField("Caption");

$jpeg->setIPTCField("Byline", "Sebastian Delmont");
$jpeg->save("images/photos001-bis.jpg");

$info = $jpeg->getBasicInfo();
echo $info['Width'] . "x" . $info['Height'];

[1] http://www.zonageek.com/tmp/JPEG.php.txt
[2] http://cvs.php.net/cvs.php/pear/Image_IPTC/

quote_end__________________________


Another fine feature would be the whole list of the searchable keywords (but this can be done also with a popup window and a small list) ?

Pekka
21st of May 2003 (Wed), 17:32
Thanks, IPTC is a very good suggestion and at good time, too, as I coding that area now - I can check IPTC with EXIF and combine their "good" data to database input.

I will use the PHP function as it has been there since PHP 4.0 ( http://zugeschaut-und-mitgebaut.de/php/function.iptcparse.html )

List of the searchable keywords is quite easy to do, but does the UI really need that??

TomKa
22nd of May 2003 (Thu), 01:16
My answer is yes, the UI needs a list of the searchable keywords. Have a look at the web solution of FotoStation, here is a little gallery for example:
http://umbuzeiro.cnip.org.br/fotoweb/ Login: cnip/cnip
Here you find a link for the "Keyword List", realized as a popup window.

If I want to marketing and to sell my pictures I can mail the link of EE-page to a list of picture editors from newspapers or magazines. This is a nice feature.

Now immagine somebody who knows nothing about your kind of photography. He can always look at the thumbnails. But if somebody is searching for certain pictures to close the layout of a book or a magazine he has no time, he will go straight on to the keyword list to see if there is something in the archive for him.
I'm getting always lost in a gallery searching for keywords because I don't know what to fil in, and after a couple of searches without results you can only look at the thumbnails if you perhaps find what you like.

Good captions and keywords enhance the value of your images. An excellent image that never turns up in appropriate situations is a lost cause. Keywording is an important part of successfully bringing your images to market. And this is why I have to point the visitor on my list of keywords which represent my own special picture archive or gallery.

Thomas