Page 1 of 1

EXIF tool to edit metadata on your photos and pictures

Posted: 09 Jul 2014, 12:42
by viking60
Your photos taken with your camera comes with a lot of information like the time and date stamp or copyright information.
You can remove or edit those data in Window Linux (and Mac but I will not go into that here).
Snorkasaurus (our Exif guru) has put it to good use in Windows here

The Exif tool in Linux is called perl-image-exiftool and it is in my Manjaro extra repo, so I install it.
Here is an intro on how to use it:
:A


Basically you can go to your Picture directory and enter:

Code: Select all

exiftool mypic.jpg

This will give you a lot of info - I did not know that I had taken that pic with a Nokia N73 and that it has a shutter speed of 1/100. It is also scary to see all that information that most of us put uncritically out on the internet.

As a curiosity; this photo is made in Adobe Photoshop on Windows
Image

So maybe Windows does not suck more after all :-D

To list all the keywords of your pictures yo can enter

Code: Select all

exiftool -keywords *.jpg

If there are none you can add keywords like this:

Code: Select all

exiftool -keywords='Linux Wallpapers, Gimp, Nature, liberty and freedom, Hi NSA nothing for you here' *.jpg

This will add the keywoords Linux Wallpapers, Gimp, Nature, liberty and freedom, Hi NSA nothing for you here to all your jpg pictures in that directory.
In Linux you can search for all *jpg keywords that contain Windows, like this:

Code: Select all

exiftool -keywords *.jpg | grep Windows


You can pretty much alter all the metadata by adding "=" to the switch and adding the text as shown in the sample above.
If there is already a text there; it will be overwritten by your entry. For this reason exiftool makes a copy of your pic when you edit it.

So to remove all metadata from a file before you put it "out there" do this:

Code: Select all

exiftool -all= *.JPG

If you right click on that pic afterwords all the info is gone.
But I can still find it with exiftool on pics coverted from jpg to png, so the data can be seen by anyone who has exif .
So I tried:

Code: Select all

exiftool -r -overwrite_original -P -all= -Copyright="viking60"  *.png

But on png pics converted by imagemagick the data seam to stay. On regular *.JPG files the data were removed. It seems to be important to remove the metadata before you convert a pic to png - because there they cannot be removed.

So this tool is a bit dangerous. It does remove the metadata from the right click info but you can see them with exiftool (on converted png files), so the data are still there. :!:
It helps a little - but it does not remove the metadata all together - at least not in my short experience.

If you remember to remove the metadata before you convert a pic - Exif seems to work well.

And you really should remove the metadata before you upload a picture - From now on I know I will +1

Re: EXIF tool to edit metadata on your photos and pictures

Posted: 11 Jul 2014, 16:56
by Snorkasaurus
viking60 wrote:And you really should remove the metadata before you upload a picture - From now on I know I will +1

I think a lot of people underestimate just how much information can be put in photos... thumbnails, camera information, date & time, GPS coordinates, and so on. It is a good idea to "sanitize" that kind of information off of your images before posting them publicly. I bet the information could be used in ways that many people would never imagine, like showing police that you were near a crime that took place, or a thief who uses the location info to find the GPS coordinates of your big screen TV and then the date/GPS info to find out that you are on vacation in Cuba.

PS: Based on a quick test it seems that FaceCrack really does strip EXIF data from images.

S.