Skip to main content
New Participant
February 25, 2019
Question

Hide Camera Raw Settings in Jpeg Metadata

  • February 25, 2019
  • 5 replies
  • 2619 views

I have a Jpeg file I am sending out and I do not want the Camera Raw settings to be visible in the meta data.  How do I erase or block this information in the metadata?

    This topic has been closed for replies.

    5 replies

    Stephen Marsh
    Community Expert
    March 17, 2019
    I have a Jpeg file I am sending out and I do not want the Camera Raw settings to be visible in the meta data.  How do I erase or block this information in the metadata?

     

    In order to remove the CRS metadata in a JPEG without opening (decompressing) and re-saving (recompressing) the image data, you could use one of the following two methods:

     

    ExifTool CLI code:

     

    Mac OS:

    exiftool -XMP-crs:all= 'os-path/to/file/or folder'

     

    Win OS:

    exiftool -XMP-crs:all= "os-path\to\file\or folder"

     

     

    Bridge Script:

     

    // 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);
            }
        }
    };

     

    Prepression: Downloading and Installing Adobe Scripts

    Stephen Marsh
    Community Expert
    November 23, 2022

    A Photoshop batch script for JPG/TIF/PSD:

     

    // https://forums.adobe.com/thread/2584026
    
    #target photoshop;
    
    var inputFolder = Folder.selectDialog("Please select folder to process");
    
    if (inputFolder != null) {
    
        var fileList = inputFolder.getFiles(/\.(jpg|jpeg|tif|tiff|psd)$/i);
    
        for (var a in fileList) {
            removeCRS(fileList[a]);
        }
    
    }
    
    function removeCRS(selectedFile) {
    
    
        if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    
        var xmpFile = new XMPFile(selectedFile.fsName, XMPConst.FILE_UNKNOWN, XMPConst.OPEN_FOR_UPDATE | XMPConst.OPEN_USE_SMART_HANDLER);
    
        var xmp = xmpFile.getXMP();
    
        XMPUtils.removeProperties(xmp, XMPConst.NS_CAMERA_RAW, "", XMPConst.REMOVE_ALL_PROPERTIES);
    
        if (xmpFile.canPutXMP(xmp)) {
    
            xmpFile.putXMP(xmp);
    
            xmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    
        }
    
    };

     

    And a Photoshop script to remove CRS metadata from an open doc:

     

    // Remove Camera Raw Settings CRS Metadata from Open Doc.jsx
    
    #target photoshop
    
    removeCRS();
    
    function removeCRS() {
        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.NS_CAMERA_RAW, "", XMPConst.REMOVE_ALL_PROPERTIES);
        app.activeDocument.xmpMetadata.rawData = xmp.serialize();
    } 

     

    Nancy OShea
    Community Expert
    February 25, 2019

    Use Photoshop > File > Export > Export As > JPG.  Under Metadata, select None  See screenshot.

    Nancy O'Shea— Product User & Community Expert
    D.A.R
    Brainiac
    February 25, 2019

    Choose the appropriate setting in the Save For Web dialog.

    However, Im not sure where you are seeing the camera Raw data.

    In this example I created 2 jpg files from a single tiff. Saved one with All Metadata (All) and the the other with No Metadata (None)

    The resulting files showed no <CRS> tags for Camera Raw settings. Unlike the original tiff which contained them all.

    davescm
    Community Expert
    February 25, 2019

    Don't confuse the File Info "Raw Data" section with camera raw data. It is not the same thing - it is just a different (XMP) representation of the Photoshop metadata

    Dave

    D.A.R
    Brainiac
    March 16, 2019

    Hence the statement: "However, Im not sure where you are seeing the camera Raw data." Because the JPGs don't show that info whereas the Tiff files do.

    Brainiac
    February 25, 2019

    You have to save it with camera settings removed. Save for Web has a drop down to select what metadata to save with the file.

    Just Shoot Me
    Brainiac
    February 25, 2019

    Not sure what you are asking.

    If you make edits in ACR to a JPG file those edits are only visible in ACR or LR. If you Save the JPG in ACR it creates either a New file or overwrites the original and with either the edits are Burnt Into the new file or the overwritten file. No ACR edits will be available to be changed.

    If you send the original file, With Out saving as a new file or overwriting the original, then the edits will be visible (be able to be changed) but only with ACR or LR.

    So what exactly are you looking to do?

    If you send out the original file that you have used ACR to edit but not saved as a new file or overwritten the original file then if the person you are sending it to opens it with a photo viewing program all they will see is thew original image, IE NO Edits will be visible.