Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can keywords import in description metadata for my photo site?

Engaged ,
May 21, 2017 May 21, 2017

I am building a stock photo site, and i have thousands of photos. I tag them all in Adobe Bridge and then upload them them to the galleries, but notice they don't maintain those keyword tags--the photo gallery interface/plugins only import descriptions, but that only manages to be the description of the camera I am using. Is there a way to place the keywords of photos in a description field of metadata automatically, sot hat my gallery can maintain the keyword tags? This is been a huge time suck, as i have to relabel every photo with all their keyword tags all over again on my site. Any suggestions HUGELY appreciated.

369
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2017 May 23, 2017

jaebaeli, try this (I can’t script, but I can sometimes hack them):

// https://forums.adobe.com/thread/1223292

// https://forums.adobe.com/thread/2318450

#target bridge    

if( BridgeTalk.appName == "bridge" ) {   

keysToDescription = MenuElement.create("command", "Keywords To Description", "at the end of Tools"); 

    } 

keysToDescription.onSelect = function () {  

var sels = app.document.selections; 

for(var a in sels){ 

md =sels.synchronousMetadata;  

md.namespace = "http://ns.adobe.com/photoshop/1.0/";  

var Keys =  md.Keywords.toString().replace(/,/g,', ');// Replace a comma with comma space 

md.namespace = "http://purl.org/dc/elements/1.1/"; 

md.description =''; 

md.description = Keys; 

    } 

}; 

To install:

Copy the 17 lines of the code above and paste into a plain text editor (notepad, textedit) or ExtendScript Toolkit, then save the file as a plain text file with a .jsx filename extension (ensuring that there is no .txt extension).

Go to Bridge > Preferences > Startup Scripts and then press the “Reveal My Startup Scripts” button.

Copy the .jsx script file to this folder.

Quit Bridge, restart Bridge, and enable the new startup script when asked, or manually tick the checkmark next to the script in the list of installed scripts.

To Use:

Select files in Bridge that contain a keyword, then use the Bridge Tools menu > Keywords to Description

P.S. You may need to purge the cache for the current files/folder or quit/restart Bridge in order for the changes to be visible.

Please note that existing Description entries will be replaced with the keyword entries.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2017 May 23, 2017
LATEST

Another option is to use ExifTool:

(Backup your files first, and or remove the -overwrite_original part of the following code to create an automated backup copy of the source file)

Mac:

exiftool -overwrite_original '-description<subject' 'PATH TO FILE or TOP LEVEL FOLDER'

Windows:

exiftool -overwrite_original "-description<subject" "PATH TO FILE or TOP LEVEL FOLDER"

Please note that existing Description entries will be replaced with the keyword entries.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines