How to make Desciption & Keywords the same for bulk upload? How to make Desciption & Keywords the same for bulk upload?
 

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

How to make Desciption & Keywords the same for bulk upload?

Started by deonholt, July 31, 2011, 08:54:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

deonholt

Hi all and thank you for your help.

If I have a lot of pictures which will all have the same Title, Description & Keywords, how do I go by to fill it in once and it will work for all pictures?

Thank you so long.

Deon

Αndré

There's a plugin that can fill the keywords for you: http://forum.coppermine-gallery.net/index.php/topic,70360.0.html

For title/description there's no plugin afaik. If you know your way around with SQL you could change that directly in your database.

deonholt

Thank you, Andre.

I will certainly give it a try.  ;)

Deon

DenisG

Hi Deon.

Check in Config>File Settings and enure you have the "Read IPTC data from JPEG files" box ticked.

I'm no genius with Coppermine but if you use Photoshop or Lightroom then all 3 can be done at the same time for all pictures. Put all the pics you wish to upload into a seperate folder and in PS5 Bridge I "Selct All" and key in the keywords from the Keyword tab. Make any new keywords as you go. Coppermine gives you the opportunity to link files to other albums by giving each album its own keyword of your choice and I always use this/those keywords first.

Once you have done the keyword allocations, go to the Metadata tab and the left hand column should open in it's own metadata tab. On the main menu, choose Tools>Create Metadata Template. At the very top, give the template a name for this batch of photos. Under the "ITPC (IIM, Legacy)" heading, use the "Document Title" field for the title of your photos and "Description" field for the description for the photo's. Once done, click "Save".On the main menu click Edit>Select All. Again, on the main menu sect Tools>Replace Metadata> and choose the name you gave to the template. All the selected photos will now have the same IPTC data applied.

While still in the metadata tab, left hand column, you should be able to click on any of the photos and see the info. If it's not showing there, in Bridge choose Edit>Preferences>Metadata and scroll down to "ITPC (IIM, Legacy)" and tick the boxes for Document Title, Keywords and Descripton then "OK". You should see them now.

Batch upload them all to Cmine and you should find the fields you refer to above all completed. I know this works 100% for me with photoshop. I see no reason why this would not work with any software able to change the IPTC data. You will need to use the plugin Andre mentions for the keywords first though. I believe that there was some confusion over which IPTC piece of data was actually the one for the Title. Some have suggested it was the "Headline" field but I know for sure that it is the "Document Title" one.

The IPTC data also shows on the screen in your gallery if you click "Display File Information", see http://www.denisg.co.uk/gallery/displayimage.php?album=lastup&cat=0&pid=3147#top_display_media and scroll down. Check the file name and description and you will see they are the same.

Hope this helps.

Denis.

Αndré

Quote from: DenisG on August 01, 2011, 01:19:04 PM
You will need to use the plugin Andre mentions for the keywords first though. I believe that there was some confusion over which IPTC piece of data was actually the one for the Title. Some have suggested it was the "Headline" field but I know for sure that it is the "Document Title" one.
If you're using IPTC data, you don't need another plugin. Here's the relevant code snippet:
            // read IPTC data
            $iptc = get_IPTC($image);
            if (is_array($iptc) && !$title && !$caption && !$keywords) {  //if any of those 3 are filled out we don't want to override them, they may be blank on purpose.
                $title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;
                $caption = (isset($iptc['Caption'])) ? $iptc['Caption'] : $caption;
                $keywords = (isset($iptc['Keywords'])) ? implode($CONFIG['keyword_separator'], $iptc['Keywords']) : $keywords;
            }


As you can see Coppermine reads IPTC data for title, caption and keywords. For the title IPTC 'Headline' is used.

DenisG

Thanks for that reminder Andre, for the life of me I couldn't remember exactly if it was necessary or not. Apologies for any confusion :)

Denis.

DenisG

Andre, what was the location of that piece of code?

In photoshop CS5, in Metadata tab I edited a demo photo to the following Metadata settings:
Document Title = 12345
Headline = 67890
Keywords = Sion Hall Falconry
Description = Test
See http://www.denisg.co.uk/gallery/albums/userpics/10001/CmineTest2.jpg

I uloaded into my Coppermine gallery and it showed:
Title = 12345
Description = Test
Keywords = Sion Hall Falconry
See http://www.denisg.co.uk/gallery/albums/userpics/10001/CmineTest1.jpg

This shows to me that the Title is being read from IPTC Document Title, not Headline does it not?

Denis.

Αndré


DenisG

Thanks Andre. Confirmed - IPTC "HEADLINE" is the Coppermine "Title" in current 1.5.14 version. No idea at which upgrade it was changed.

Those insisting on keeping at least 1.5.08 and avoiding upgrading will still find that it is IPTC "Document Title" that is used.

Forgive me again for any confusion here :-[
Denis.

Αndré