Copy link to clipboard
Copied
Is there a way to save the opened file as .jpg without all the metadata (camera info, date taken, etc.)? I currently use the code below, but there seems to be no option to suppress the unnecessary data from the output file.
var jpgOpts = new JPEGSaveOptions();
jpgOpts.quality = 9;
jpgOpts.embedColorProfile = false;
jpgOpts.matte = MatteType.NONE;
jpgOpts.formatOptions = FormatOptions.STANDARDBASELINE;
Copy link to clipboard
Copied
Use saveforweb or duplicate the layer to a new document and save it.
Copy link to clipboard
Copied
See this post.
Copy link to clipboard
Copied
Finally, for existing images, you might use exiftool to scrub all metadata.
Copy link to clipboard
Copied
There is a script in the following topic that removes the photoshop:DocumentAncestors metadata, perhaps this could be modified for other metadata (be careful not to overwrite the original image though):
https://forums.adobe.com/message/8511978#8511978
___________________
maxwyss took the words right out of my mouth. Depending on the data that you wish to remove the three common sets of metadata tags are below (I usually use the second/middle command):
exiftool -all= -r 'path/to/file or top level folder'
exiftool -all= -CommonIFD0= -r 'path/to/file or top level folder'
exiftool -all= -CommonIFD0= -Adobe:All= -r 'path/to/file or top level folder'
(Windows users would use straight double quotes rather than single. Add the -overwrite_original argument to skip the auto generation of backup files)
The ExifTool commands can be easily incorporated into a drag-n-drop shortcut on Windows OS or used with Apple Automator on the Mac to create a drag-n-drop app, contextual right click service or folder action etc:
Copy link to clipboard
Copied