View Full Version : IPTC
photocroatia
30th of April 2004 (Fri), 05:19
Hi All,
I have been under a rock all this time and ignored IPTC.
I never knew how brilliant it is and what it can do for me, now that I am a little wiser, I can set all the photo properties I want in EE using IPTC, like Country, Location, Free Text Info, Meta Keywords and Category.
The only thing I can’t work out is how to set the Photographer, is it possible to set the Photographer using IPTC?
If it is possible to do it, all my problems are solved.
If it is possible to set the Photographer using IPTC I would appreciate if you could help me.
Thank You!!
Pekka
30th of April 2004 (Fri), 05:40
The photographer is fetched from iptc credit line (iptc_credit_byline is currently ignored, see below for adding a small fix to this) and it is used in guessing the owner. This means the owner must be inserted in EE before upload. I'm not sure if adding an unfound owner is needed (this may produce same person with different written variations)? It can be coded of course if needed.
The owner field in Photoshop's File Info dialog is "ORIGIN/Credit". With below fix applied "GENERAL/Author" preceeds origin tag.
In PHOTODATA_datahandler.php change lines
if ($exif_copyright != "") $copyright = $exif_copyright;
if ($iptc_credit != "") $copyright = $iptc_credit;
to
if ($exif_copyright != "") $copyright = $exif_copyright;
if ($iptc_credit != "") $copyright = $iptc_credit;
if ($iptc_credit_byline != "") $copyright = $iptc_credit_byline;
photocroatia
30th of April 2004 (Fri), 06:13
Pekka,
Thanks for the quick reply, im sure it works, but I must be doing something wrong.
I added the line to PHOTODATA_datahandler.php:
if ($exif_copyright != "") $copyright = $exif_copyright;
if ($iptc_credit != "") $copyright = $iptc_credit;
if ($iptc_credit_byline != "") $copyright = $iptc_credit_byline;
In PhotoShop under File - File Info (Origin) , Field Credit the value is "Unknown Photographer", this is a valid Photographer.
Under "UPLOAD TO DATABASE" "STEP 5" , I checked "guess owner"
The photographer that appears is the photographer defined in default photodata photographer not "Unknown Photographer".
Thank You
Pekka
30th of April 2004 (Fri), 06:35
You can see the guess keywords and results in detail in messages:
E.g.
msg 152755 | database action: GUESS LOCATION: | Searching keywords | %Helsinki% | highest ranking location id found is: 25
msg 152754 | database action: GUESS COUNTRY: Searching | Finland | highest ranking country id found is: 60
msg 152753 | database action: GUESS OWNER: | Searching keywords | %Pekka% | %Saarinen% | highest ranking owner id found is: 2
msg 152752 | database action: GUESS LENS: | Searching maker: Canon | Searching aperture: 5 | Searching focal: 200 | Searching focal range: 200 | highest ranking lens id found is: 16
msg 152751 | database action: GUESS CAMERA: | Searching maker: Canon | Searching keywords | Canon | EOS | 10D | highest ranking camera id found is: 8
photocroatia
30th of April 2004 (Fri), 06:50
Pekka,
Excellent that helped. It works 100%. I am happy!!
Thank a lot.
c_by_sinus
30th of April 2004 (Fri), 07:16
Hi All,
I have been under a rock all this time and ignored IPTC.
I never knew how brilliant it is and what it can do for me, now that I am a little wiser, I can set all the photo properties I want in EE using IPTC, like Country, Location, Free Text Info, Meta Keywords and Category.
The only thing I can’t work out is how to set the Photographer, is it possible to set the Photographer using IPTC?
If it is possible to do it, all my problems are solved.
If it is possible to set the Photographer using IPTC I would appreciate if you could help me.
Thank You!!
And as a benefit: when you do iptc, all this entries are usually safe, because "embedded" in your image. You could use then for example a Image-Management - program like Cumulus, Portfolio or IMatch (simply the best) and your iptc-values will always "flow" into these systems (sometimes in different ways).
IPTC is -from my point of view- the best way to describe your images. And whe EE does support such a standard, it is even better ... thanks to Pekka.
Markus
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.