Skip to main content
shasimo
Inspiring
September 22, 2022
Answered

Metadata, excluding from jpegs

  • September 22, 2022
  • 2 replies
  • 2701 views

When I save a copy as jpeg (I do this because I need to enclose a path), i get unwanted metadata in the jpg file - Camera Raw data and also Edit historie (see the attached dump, please).

Does anyone know how to avoid this?
I also used to be able to quickly replace metadata on multiple files with my own template in Bridge by choosing Tools, Replace metadata, but now I have to select each file, choose File Info and Replace template with... That is very time consuming...

Thanks in advance ☺

This topic has been closed for replies.
Correct answer Stephen Marsh

Okay, not so hard ☺
I have now tried to use this code: https://community.adobe.com/t5/photoshop-ecosystem-discussions/hide-camera-raw-settings-in-jpeg-metadata/m-p/10306319#M225585

I put it in a txt file, renamed it to remCRS.jsx, put it in the Bridge startup script folder, restarted Bridge, said yes to the script prompt and it's now showing up in the tools menu, but nothing happens when I run it (choosing a file and pressing the menuitem Remove camera raw metadata.

I wonder what is wrong?


The change in forum software broke some script code posted before the forum software was updated. Try this:

 

// https://forums.adobe.com/message/9758205#9758205
#target bridge
if( BridgeTalk.appName == "bridge" ) {
remCRS = new MenuElement("command", "Remove Camera Raw Metadata",  "at the end of Tools");
}
remCRS.onSelect = function () {
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var sels = app.document.selections;
for (var a in sels){
var thumb = new  Thumbnail(app.document.selections[a]);
var md = thumb.synchronousMetadata;
var xmp = new XMPMeta(md.serialize());
        if(thumb.hasMetadata){
         XMPUtils.removeProperties(xmp, XMPConst.NS_CAMERA_RAW, "", XMPConst.REMOVE_ALL_PROPERTIES);
        var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
        thumb.metadata = new Metadata(updatedPacket);
        }
    }
};

 

I have updated the code in that old topic too.

2 replies

Stephen Marsh
Community Expert
Community Expert
September 23, 2022
shasimo
shasimoAuthor
Inspiring
September 23, 2022

Thank you - I saw the first one before posting, but to me it looked very difficult. I'm not a programmer, and all I want is a straight forward solution like a button "Press here to remove unwanted metadata from all your files before sending them to your clients" 😉

 

Also the solutions where a new file is made, are not for me as my clipping path is not included in the new file.
I would settle for the function of replacing with my own template, if only I could do it on multiple files, as I used to do not so long ago, but when I do this now, nothing is happening.

I tried with a batch action, but that doesn't work either.

 

The "Edit History" is the worst, because here anyone can se my local file paths with folder names and everything.

 

 

 

 

Stephen Marsh
Community Expert
Community Expert
September 23, 2022

@shasimo – it just looks harder than it is as you are unfamiliar with the process. All you need to do is copy/paste the code, not write it yourself!

 

  1. Copy the code text to the clipboard
  2. Open a new blank file in a plain-text editor (not in a word processor)
  3. Paste the code in
  4. Save the text file as .txt
  5. Rename the file extension from .txt to .jsx
  6. Install or browse to the .jsx file to run (see below)

 

If these simple instructions are too abbreviated, you may need to read on...

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

Earth Oliver
Legend
September 22, 2022

use Save for Web.

shasimo
shasimoAuthor
Inspiring
September 22, 2022

I do that, when I don't need to include a path...