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

Add Metadata to

Explorer ,
Sep 13, 2022 Sep 13, 2022

I have a image file with metadata. In Photoshop, I have a template that I pull the aforementioned image into. When I save this image within the template file (both layered and flattened), the initial metadata does not migrate over to the file.

 

I know there are ways to add the metadata manually prior to export, but I was wondering if there are any actions or plugins available that will make that process easy. It is different metadata every time, so I can't use the template feature. 

TOPICS
macOS
2.6K
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

correct answers 2 Correct answers

Community Expert , Sep 21, 2022 Sep 21, 2022

@Cassandra23173182ml8a 

 

EDIT: 23rd September... Here is an updated 1.1 version to append the keyword metadata. This assumes that the template document is the first document opened, with the two asset docs opened afterwards. It is also assumed that the asset files are flattened and don't contain layers. This also presumes that there are only two asset images in addition to the template image.

 

/*
Copy and paste pixel and keyword metadata.jsx
v1.1, Stephen Marsh, 23rd September 2022
https://com
...
Translate
Community Expert , Sep 28, 2022 Sep 28, 2022

Ok, so now you just need this to work on 2 or more open docs? There could be 2, 3 or more files open and this varies each time the script is run?

 

Edit: Here is an updated version that works with 2 or more open docs. There is no longer a requirement that the template is the first doc open, the active document when running the script should be the template, and the order doesn't matter. The pasted images are converted to embedded smart objects.

 

/*
Copy and paste pixel and keyword metadata.jsx
...
Translate
Adobe
Community Expert ,
Oct 26, 2022 Oct 26, 2022
LATEST

@Cassandra23173182ml8a 

 

Another option could be to use the Script Events Manager:

 

https://prepression.blogspot.com/2021/10/photoshop-script-events-manager.html

 

Using a modified version of the last script posted, with the Script Events Manager set to use the placeEvent:

 

2022-10-27_12-23-24.png

 

This way, every time a smart object is created (drag-n-drop into Photoshop, File > Place...), the modified script would automatically run, copying the keyword from the SO to the main Template file.

 

Pros: No duplicate keywords from possible multiple script runs as with the previous script. Duped keywords would only be created if the same image was placed multiple times or if the same keyword was used in multiple images. No need for a user to remember to run the previous script manually.

 

Cons: This would kick-in every time an image was placed, whether or not you were working in a template file or not. Of course this can be disabled/enabled as required, which has it's own room for error if you forget to turn it back on before working on a template.

 

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