Hi
i am trying to make a script to remove some metadata of the photos, but i think i am not getting it..
What i need, is to remove all the metadata except EXIF and IPTC. But also, i need to remove the GPS parts. The rest of metadata, if any, should also be also removed.
So i tried this:
exiftool -all= -tagsfromfile @ -exif:all -xmp:all --gps:all -o outputfile <srcfile>
but apparently it does the opposite. it removes everything but the GPS
what am i doing wrong?
best regards
Quote from: nestochi on February 16, 2012, 06:28:23 PM
but apparently it does the opposite. it removes everything but the GPS
what am i doing wrong?
Your command looks fine, and should work to remove all metadata except standard EXIF (excluding GPS) and XMP. I tried it and it works fine for me. However, you should note that it will also remove things like the ThumbnailImage, which technically is part of the EXIF but is copied via a Composite tag.
If you look at the metadata of the destination file with
-a -G1, and you shouldn't see any GPS. If you do, email me the image and the exact command you used and I'll try to reproduce your result (philharvey66 at gmail.com).
- Phil
you're right. the problem was on my side.
after sleeping i redid the script from scratch and now it's working as expected.
sorry about that...
Just one more question. Is it possible to define the temporary directory exitool uses to write the files?
i would like to define a system directory instean of the same folder as the original file, but i am not sure if that's possible without modifying the perl file.
bes regards
I'm glad you sorted it out.
The -o option sets the output directory if you give it a directory name (with or without a file name included).
- Phil