forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Drew Fulton on June 30, 2006, 06:16:51 am

Title: Importing IPTC Info
Post by: Drew Fulton on June 30, 2006, 06:16:51 am
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
Title: Re: Importing IPTC Info
Post by: Drew Fulton on June 30, 2006, 03:52:33 pm
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 (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!
Title: Re: Importing IPTC Info
Post by: Stramm on July 01, 2006, 03:14:07 pm
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
Title: Re: Importing IPTC Info
Post by: Drew Fulton on July 04, 2006, 09:56:12 pm
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