Importing IPTC Info Importing IPTC Info
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Importing IPTC Info

Started by Drew Fulton, June 30, 2006, 06:16:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Drew Fulton

So I am just about finished integrating my gallery into my site design and I am loving it so far.

I have one idea that may already be implemented but I didn't find it either in a search on the forum or in the documentation.

I was wondering if when uploading a file, particularly while batch uploading, Coppermine could read the IPTC fields like Title, Description, and Keywords and automatically place it in the appropriate fields in the Image Description?  This would facilitate quickly uploading a lot of files and only require that they be placed in the correct album.

Thanks!

Drew

Drew Fulton

So I looked through the MOD forum and found something that starts to do what I am interested in.

http://forum.coppermine-gallery.net/index.php?topic=28718.0

My question, is can we use the IPTC Info when the image is uploaded either manually or through the batch (more concerned about batch).  That way if you have some images that you want to edit the description you will be fine and not lose that if you want to use the above MOD on other images in the album. 

Thanks!

Stramm

yes, you can... if you extract that IPTC read function from the zip you found in your link. Then you need to embed that into include/picmgmnt.inc.php (function add_picture). I'd say somewhere above     // Populate Array to pass to plugins, then to SQL

Drew Fulton

Alright, I have been trying to get this to work on my own for a couple days and I just can't figure it out.  Using CPG as is, the IPTC info is used perfectly if I am uploading files manually (not batch). I have tried implementing the code for this to allow ITPC info to be used for Batch Uploads but can't seem to get anythign to work. 

Any specific suggestions would be greatly appreciated.

Thanks,
Drew