Copy link to clipboard
Copied
Hi
I am looking for a Script to remove all meta data from the photo (main issue is camera and lens info)
if i give my client a flat image with no layers, i can do it while i export from lightroom.
but i want a way to do it while i keep the layers
is there a photoshop script to do that?
Thank you in advance
#target photoshop
removeXMP();
function removeXMP(){
if(!documents.length) return;
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
app.activeDocument.xmpMetadata.rawData = xmp.serialize();
}
As previously mentioned, this can (mostly) be performed using an action, duplicating the layers to a new file. With conditional actions it can gracefully handle a flattened file.
This is performed by duplicating the layers to a new file. NOTE: Paths, alpha channels, guides, colour samplers and other document-level objects will not carry over to the new file (which may be a good thing if this is for a client, they usually don’t require your intermediate “workings”, you are just supplying a la
...Copy link to clipboard
Copied
Bot bot bot bot