Skip navigation
Currently Being Moderated

delete metadata

Aug 26, 2010 6:27 AM

Is there a way yet to save a picture without metadata?

 

If not, why not?

 
Replies
  • Omke Oudeman
    4,001 posts
    Nov 27, 2004
    Currently Being Moderated
    Aug 26, 2010 6:44 AM   in reply to 12345scott

    Is there a way yet to save a picture without metadata?

     

     

    In Safe for Web you can choose to excluded all metadata and there seem to be

    scripts that can strip the metadata of files, if you have only a few you can

    copy past the file to a new one and that strips also all metadata (open a

    file, cmda / Cmdc / cmd n/ cmdv and flatten the new file to one layer.)

     

     

    If not, why not?

    In general metadata are very useful for various reasons and other

    applications can benefit from metadata also.

     

    Not many people have the need for such a method hence such a feature will

    not be implemented until many user request for it

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2010 7:11 AM   in reply to 12345scott

    It's possible to remove all the metadata in bridge using a script, this should work on most file types except some raw files.

    Using ExtendScript Toolkit copy and paste the code into a new window, start Bridge - Edit - Preferences - Startup Scripts, click the "Reveal" button. This will open the folder that the script should be placed. Once that has been done close and restart Bridge and accept the new script.

     

    To use select the documents in Bridge then "Mouse Control/Click menu" select "Remove XMP data"

     

    
    #target bridge   
    if( BridgeTalk.appName == "bridge" ) {  
    removeXMPDAT = new MenuElement("command", "Remove XMP data", "at the end of Thumbnail");
    }
    removeXMPDAT.onSelect = function () { 
       removeXMPData();
       }
    function removeXMPData(){
    if( xmpLib == undefined ) {
      if( Folder.fs == "Windows" ){
       var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.dll";
      } else {
       var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.framework";
      }
      var libfile = new File( pathToLib );
      var xmpLib = new ExternalObject("lib:" + pathToLib );
     }
    var sels = app.document.selections;
    for (var a in sels){
    var thumb = app.document.selections[a];
      var md = thumb.synchronousMetadata;  
      var xmp = new XMPMeta(md.serialize());
            try{
            XMPUtils.removeProperties(xmp, "", "", XMPConst.REMOVE_ALL_PROPERTIES);
            var updatedPacket = xmp.serialize(XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
            thumb.metadata = new Metadata(updatedPacket);
             }catch(e){alert(e);}
        }
    }
    
     
    |
    Mark as:
  • Omke Oudeman
    4,001 posts
    Nov 27, 2004
    Currently Being Moderated
    Aug 26, 2010 7:49 AM   in reply to 12345scott

    I cannot possibly see why when people distribute files, for print for example,

    they would want to distribute personal data, like camera serial number to

    strangers.

     

     

    To speak personally I really have no problem with that whatsoever, and also

    as a professional photographer I have no problem that my clients can see the

    other information also. There is nothing I wish to hide and there will be

    very less clients that will look in to that information, they probably don't

    even know it is there...

     

    And stripping metadata from files while distributing means also stripping

    copyright info and IPTC for description etc. That really sounds as horror to

    me!!

     

    But as said, that is personal, and the metadata with e.g. serial number

    gives me the opportunity to filter all files taken with that camera in a

    very easy way.

     

    I often have stated: so many photographers so many workflows. But makes it

    very hard for any vendor to fulfill all the wishes there are for

    applications.

     
    |
    Mark as:
  • Omke Oudeman
    4,001 posts
    Nov 27, 2004
    Currently Being Moderated
    Aug 27, 2010 1:30 AM   in reply to 12345scott

    Maybe I am (and have been) being foolish.

     

    Don't know, let's call it: just different...

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 26, 2012 8:46 AM   in reply to Paul Riggott

    Thanks a lot for the script! Regards, Tuomas

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points