2
1
I am trying to remove all meta data from JPEG files except common photo tags as listed with exiftool -common
(camera model, shutter speed, aperture, ISO, etc.) lens model, color space and embedded ICC profile.
Using the answer from question exiftool: delete exif data but preserve some specific tags, the following commands are produced. The problem is that both of them result in removing shutter speed, aperture and the embedded ICC profile as can be verified using exiftool
with the respective flags.
exiftool -all= -tagsFromFile @ -common -LensModel -ColorSpace -icc_profile:all original.JPG
exiftool -all= -tagsFromFile @ -common -aperture -ShutterSpeed -LensModel -ColorSpace -icc_profile:all original.JPG
They both produce warning:
Warning: Sorry, filesize is not writable
Are the commands malformed or is this an ExifTool bug? This behaviour is confirmed on ExifTool version 10.40.
1
Possible duplicate of exiftool: delete exif data but preserve some specific tags
– flolilo – 2018-02-17T18:23:41.873Using the answer from the referenced question, one gets the unexpected result pointed out in my question. – Kyselejsyreček – 2018-02-17T18:26:33.657
I shifted my answer to that question - I tested mine and it works.
– flolilo – 2018-02-17T18:38:08.740Also note that v
10.40
is from january 2017 - v10.79
was released recently. The latest production release is v10.55
- in June 2017. – flolilo – 2018-02-17T18:45:24.667Thank you, this answers my question. Please also note that the flags containing the < sign will not work on Linux upon encapsulation with apostrophes. – Kyselejsyreček – 2018-02-17T18:50:10.063
Glad I could help :-) You mean that you have to escape
<
? May I ask how you do that? Then I can add it into my answer (you could edit it as well). – flolilo – 2018-02-17T19:02:19.950Yes, that is exactly what I have meant. Writing
'<'
suffices but one can wrap the whole parameter, e.g.'common<common'
. However, I cannot seem to make the command work as expected. The resulting images lack information about shutter speed and aperture and even Camera Model Name reads "Off, Did not fire". Adding'-aperture<aperture' -ShutterSpeed<ShutterSpeed'
after `'-common<common' has no effect. – Kyselejsyreček – 2018-02-17T19:35:53.1871would you mind switching over to my answer? I now edited it so
-common
is not needed any more. – flolilo – 2018-02-17T20:13:58.533