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.