Clearing all metadata (in all smart object levels)

  • 4
  • Idea
  • Updated 10 months ago
I have a lot of PSD files (and i get more and more), with a lot of <photoshop:DocumentAncestors> metadata (20mb or more in one file). It isn't a problem to clear this in a jpeg (and win 20mb or more free space ) tif etc, using a ps js script, or using exiftools. BUT! If the psd contains many smart objects, i have to open it all (sometimes to level 2-3-4... ) and run the script. And if i miss a layer what conains it.. i can start again.. So.. If you could write a plus option for file info/metadata, to clear all, on all integrated leves, or only clear the specified tag (in this case documentancestors), that would be cool, and could save a lot of gigabytes for a lot of usert (i think)
Photo of György Protzner

György Protzner

  • 3 Posts
  • 0 Reply Likes

Posted 10 months ago

  • 4
Photo of György Protzner

György Protzner

  • 3 Posts
  • 0 Reply Likes
Photo of György Protzner

György Protzner

  • 3 Posts
  • 0 Reply Likes
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1208 Posts
  • 166 Reply Likes
You could adapt the Script to open the SOs and perform the task therein, too. 
If you need help with that you could ask over at 
Photoshop Scripting
Photo of Stephen Marsh

Stephen Marsh

  • 64 Posts
  • 14 Reply Likes
Some solutions here, however I have not explored “nested” smart objects to see if which (if any) of these solutions works on the embedded smart objects (or is this also for linked SO?):

https://prepression.blogspot.com.au/2017/06/metadata-bloat-photoshopdocumentancestors.html
Photo of christoph pfaffenbichler

christoph pfaffenbichler, Champion

  • 1208 Posts
  • 166 Reply Likes
or is this also for linked SO?
Good question, linked SO might merit a different handling.