Remove EXIF Metadata from Photos with exiftool
Productivity Sauce
Sometimes, it is a good idea to scrub EXIF metadata from photos before sharing them, and there is no better tool for the job than exiftool. The command below nukes all EXIF metadata in a photo in one fell swoop (replace foo.jpg with the actual file name):
exiftool -all= foo.jpg
This command removes EXIF metadata from the specified photo, but what if you need to process multiple photos? Then you can use the following command which cleans all the photos in the current directory:
for i in *.jpg; do echo "Processing $i"; exiftool -all= "$i"; done
Instead of purging all EXIF metadata from a photo, you can also remove individual fields. For example, the following command can come in handy when you need to remove geographical coordinates embedded in the photo:
exiftool -geotag= foo.jpg
And the command below can help you to remove geotags from multiple photos in one go:
for i in *.jpg; do echo "Processing $i"; exiftool -geotag= "$i"; done
Comments
comments powered by DisqusIssue 185/2016
Buy this issue as a PDF
News
-
Internet Research Group Proposes Better Email Standard
Improvements to SMTP will provide better guarantee of confidentiality
-
New Nvidia Driver Offers Wayland Support
Graphics vendor embraces new reality in Linux graphics
-
Inventor of Email Dies
Pioneer Ray Tomlinson bequeathed the @ sign to billions of Internet users
-
Microsoft Announces Linux Version of SQL Server
Redmond says its classic database tool will run without Windows
-
Strange New Attack Lets an Intruder Gain Access Through a Mouse Dongle
New intrusion technique affects most non-Bluetooth wireless mice
-
GDP-ivi: Linux Platform May One Day Drive Your Car
GENIVI Alliance announces the release of the first beta of the GENIVI Demo Platform ivi9.
-
Google Announces End to Flash Ad Support
Upcoming switch to HTML5-only ads is further evidence the Flash is entering its final days.
-
President Obama Launches New Cybersecurity Initiative
US government invests $19 billion on enhancing security and replacing ancient computer systems.
-
Linux Foundation Eliminates Individual Membership
But you can still be a non-voting “individual supporter” if you pay the money
-
Secret Backdoor Affects More Fortinet Firewalls
Several current systems could fall victim to the attack

other geographical data...
[code]exiftool -gps:all= *.jpg[/code]
to remove the information
ExifTool processes directories
exiftool -all= SOME_DIRECTORY
And add a -r option to recursively process subdirectories too.
This will process any type of file that is writable by ExifTool, but if you only want to process jpeg images, add "-ext jpg" and maybe "-ext jpeg" to the command. (No need to add "-ext JPG" because the -ext option is case insensitive).
More info on exiftool
exiftool -r -overwrite_original -P -all= -copyright="My Name" *.jpg *.jpeg *.JPG
Might be more to the point.