I need the exact opposite of How to remove orientation attribute from the photo without touching other exif-data?
I want to keep the EXIF rotation data, but I want to strip the rest of the data. Obviously I can use exiftool -all= file.jpg
but that will remove the orientation data as well, which is undesirable.
Is there a way to keep only the rotation data with exiftool? I could use exiftran or something similar, but I'd rather just leave only the rotation data.