ExifTool
# ExifTool is a widely used tool for {read, write, edit} metadata in image files. It's available for {Windows, Mac, Linux}.
#Install Exiftool
# install exiftool
PHP Code:
sudo apt-cache install libimage-exiftool-perl #try this one first
sudo apt-get install libimage-exiftool-perl #if it dosen't work then this is plan B
# For Mac, Microsoft Windows, see ExifTool home page at http://owl.phy.queensu.ca/~phil/exiftool/
#View Metadata
#How to view metadata of image file?
# show metadata of a image file
PHP Code:
exiftool myPhoto.jpg
# show metedata for all *jpg files in current dir
PHP Code:
exiftool -ext jpg
# show metedata for all *jpg files in current dir and subdirs
PHP Code:
exiftool -r -ext jpg .
# Remove Metadata
How to remove metadata of a image file?
# remove all metadata of a image file
PHP Code:
exiftool -all= -overwrite_original photo.jpg
# remove all metadata of all *jpg files in current dir
PHP Code:
exiftool -all= -overwrite_original -ext jpg .
# remove metedata for all *jpg files in current dir and subdirs
PHP Code:
exiftool -all= -r -overwrite_original -ext jpg .
#The -ext jpg is case-sensitive. So, you might use -ext JPG or -ext jpeg or -ext png.
#How to remove just GPS data?
# remove all GPS metadata of *jpg files in current dir
PHP Code:
exiftool -gps:all= *.jpg
#ImageMagick 「identify -verbose」
#A alternative to exiftool is ImageMagick identify -verbose.
###############----I Hope you found this post helpful, have a great day!
#~MR3
sudo eval ./Matrix.exe
#MR3
(This post was last modified: 09-22-2018, 07:57 AM by Mr.Kurd.) #MR3