Anand
as in most cases when it comes down to pure technology specification documents help a lot:
The IPTC Photo Metadata 2008 standard document
http://www.iptc.org/std/photometadata/2008/specification/IPTC-PhotoMetadata-2008.pdf
defines that keyword are discrete properties - see the Keywords property on page 14.
This translates to:
- on the user interface the keywords must be separated by commas or semicolons. Be aware: a "keyword" may also be a phrase = more than 1 word!
- then your software has to split this sequence of keywords into separate tokens
- then your software has to write different keyword entries for each token
The same should be done for reading:
- read all keyword properties from the image file
- concatenate them, but apply a semicolon as separator between them.
Note: When you write the string of keywords **with** the semicolons to a single keyword field and then open this image file with Photoshop then it looks fine at the user interface, and if one saves the metadata later then Photoshop does the work of splitting the keyword line into tokens.
Happy programming
Michael
On 28 Mar 2009 at 17:45 Anand wrote:
> Hi,
> I have developed an web application for my cleint which accepts the
> photographs from diferent sources, the application write the IPTC data to
> the image file on the fly, when the image file is uploaded to the server.
> User have IPTC data template creation facility so that user can apply
> same IPTC data to all the files on one go. Now, i am facing a small issue
> that while adding the keywords. I am adding the multiple keywords and
> separating them by ; (semi-colon) . Now it works fine in photo shop and
> other software, but only in one software the keywords are not getting
> split, they are shown in one row only i.e. "Keyword1 ; keyword 2; keyword
> 3" and when i remove the " (quotes) the keywords gets split properly.
>
> I know this is a specific software related issue, but if someone has exp.
> it before such issue, then it shall be helpful for me. Please let me know
> if you have some tips for fixing it. The web application is developed in
> PHP/MySQL
>
> Regards,
> Anand
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/iptc-photometadata/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/iptc-photometadata/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
> mailto:iptc-photometadata-digest@yahoogroups.com
> mailto:iptc-photometadata-fullfeatured@yahoogroups.com
>
> <*> To unsubscribe from this group, send an email to:
> iptc-photometadata-unsubscribe@yahoogroups.com
>
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
==================================================
Sent by:
Michael Steidl
Managing Director of the IPTC <mdirector@...>
International Press Telecommunications Council
"Information Technology for News"
Visit us on the web at
http://www.iptc.org