Which cmd command can delete all metadata info from jpg image?

Started by Jenis, October 23, 2018, 04:39:44 PM

Previous topic - Next topic

Jenis

I'm looking for a cmd command which can clear all image metadata.


I tried this command:
exiftool -exif:all= img.jpg
But it didn't work. All info is still on its place. Also I'd like to forbid exiftool to create a duplicate of original file.

StarGeek

-EXIF:All= will only delete metadata from the EXIF block and won't touch the many other types of metadata.  Try using -All= instead.  Take note that there are several file system related info (usually Date/Time stamps) and image related (such as image dimensions) that cannot be removed and will stil show up in the Windows Properties dialog.

To avoid creating backup files, add the Overwrite_Original option.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Jenis

Thank you!

Will exiftool fix warnings and errors with this command?

Can you tell me the right line to fill in this Description?

I tried this:
exiftool -All= -overwrite_original -m -q -q -ImageDescription="Title" -XPTitle="Title" -XPComment="Comment" -XPKeywords="Keywords" -XPSubject="Theme" -Title="Title" -Description="Title" -Subject="Keywords" -Rating="5" -RatingPercent="99" -LastKeywordXMP="Keywords" img.jpg
And it works:
ExifTool Version Number         : 11.14
File Name                       : org1.jpg
Directory                       : C:/
File Size                       : 3.3 MB
File Modification Date/Time     : 2018:10:24 18:01:06+05:00
File Access Date/Time           : 2018:10:24 18:01:06+05:00
File Creation Date/Time         : 2018:10:24 17:47:46+05:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Big-endian (Motorola, MM)
Image Description               : Title
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Y Cb Cr Positioning             : Centered
XP Title                        : Title
XP Comment                      : Comment
XP Keywords                     : Keywords
XP Subject                      : Theme
XMP Toolkit                     : Image::ExifTool 11.14
Last Keyword XMP                : Keywords
Rating Percent                  : 99
Description                     : Title
Subject                         : Keywords
Title                           : Title
Rating                          : 5
Image Width                     : 1200
Image Height                    : 2400
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:4:4 (1 1)
Image Size                      : 1200x2400
Megapixels                      : 2.9

but it adds some info like "Y Cb Cr Positioning : Centered". I don't know is it right or wrong.

StarGeek

Quote from: Jenis on October 24, 2018, 07:18:40 AM
Can you tell me the right line to fill in this Description?

Take a look at this post which lists what tags Windows reads to fill the Properties window.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Jenis

Thank you, I read it. But I'm still not sure do I have to change my line that I wrote above or not?