Skip to main content
Inspiring
January 10, 2019
Question

Save .jpg without metadata.

  • January 10, 2019
  • 4 replies
  • 5728 views

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;

This topic has been closed for replies.

4 replies

Participant
March 6, 2023
images_adobe_express.jpg
Legend
January 13, 2019

Finally, for existing images, you might use exiftool to scrub all metadata.

Stephen Marsh
Community Expert
Community Expert
January 13, 2019

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:

Prepression: Apple Automator

Geppetto Luis
Legend
January 11, 2019
Legend
January 10, 2019

Use saveforweb or duplicate the layer to a new document and save it.