• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Save .jpg without metadata.

Engaged ,
Jan 10, 2019 Jan 10, 2019

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;

TOPICS
Actions and scripting

Views

3.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
People's Champ ,
Jan 10, 2019 Jan 10, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 11, 2019 Jan 11, 2019

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 12, 2019 Jan 12, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2019 Jan 13, 2019

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:

Prepression: Apple Automator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 06, 2023 Mar 06, 2023

Copy link to clipboard

Copied

LATEST
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines