7 Replies Latest reply: Feb 26, 2012 8:46 AM by Tvir RSS

    delete metadata

    12345scott Community Member

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

       

      If not, why not?

        • 1. Re: delete metadata
          Omke Oudeman Community Member

          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

          • 2. Re: delete metadata
            Paul Riggott Community Member

            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);}
                }
            }
            
            • 3. Re: delete metadata
              12345scott Community Member

              Wow Paul; you are helpful.  Thanks

               

              and in answer to the other note: 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.

              • 4. Re: delete metadata
                Omke Oudeman Community Member

                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.

                • 5. Re: delete metadata
                  12345scott Community Member

                  Hi,

                   

                  I see your point. Maybe I am (and have been) being foolish.

                   

                  Thanks

                  • 6. Re: delete metadata
                    Omke Oudeman Community Member

                    Maybe I am (and have been) being foolish.

                     

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

                    • 7. Re: delete metadata
                      Tvir

                      Thanks a lot for the script! Regards, Tuomas