Social Icons

Sunday, January 31, 2021

REMOVE METADATA FROM IMAGES: UBUNTU with exiftool utility

Just few commands in Ubuntu to check the meta data and thereafter remove the same.I am using a utility exiftool which does not come inbuilt to most of the Linux systems,but we need to install them.

INSTALL COMMAND

sudo apt-get install libimage-exiftool-perl

USAGE COMMAND

exiftool -all= IMG_20200504_215424.jpg

(The above command creates a separate copy of the original file and the new file which is created with removed metadata)

or

exiftool -overwrite_original -all= IMG_20200504_215424.jpg 

(The above command overwrites the original file with the new file created with removed metadata)

Showing you output of one file prior to removal of meta data and thereafter removing the meta data

ORIGINAL FILE

kabali@Kabali:~/Desktop/ddd$ jhead IMG_20200504_215424.jpg
File name    : IMG_20200504_215424.jpg
File size    : 3588382 bytes
File date    : 2021:01:31 14:10:13
Camera make  : Xiaomi
Camera model : Mi A2
Date/Time    : 2020:05:04 21:54:24
Resolution   : 4000 x 3000
Orientation  : rotate 90
Flash used   : No
Focal length :  4.1mm  (35mm equivalent: 4mm)
Exposure time: 0.050 s  (1/20)
Aperture     : f/1.8
ISO equiv.   : 1000
Whitebalance : Auto
Metering Mode: center weight
GPS Latitude : ? ?
GPS Longitude: ? ?
JPEG Quality : 98

REMOVED METADATA FILE

kabali@Kabali:~/Desktop/ddd$ jhead IMG_20200504_215424.jpg

File name    : IMG_20200504_215424.jpg
File size    : 3556853 bytes
File date    : 2021:01:31 14:30:08
Resolution   : 4000 x 3000
JPEG Quality : 98


 

0 comments:

Post a Comment

Powered By Blogger