My Canon EOS 6D correctly sets the orientation tag for CR2 (raw) files, but fails to do so for the simultaneously created JPG. So I thought to try this:
exiftool -tagsfromfile %d%f.cr2 -orientation -ext JPG .
but I'm getting an error:
E:\Images\EOS6D\2014\12\2014-12-29\rotate>exiftool -tagsfromfile %d%f.cr2 -orientation -ext JPG .
Error: Error creating file: ./IMG_0027.JPG_exiftool_tmp - ./IMG_0027.JPG
Error: Error creating file: ./IMG_0028.JPG_exiftool_tmp - ./IMG_0028.JPG
1 directories scanned
0 image files updated
2 files weren't updated due to errors
Is there something wrong with my command?
This is on Windows 10. I have tried in a command window 'as administrator', and tried setting read/write/modify permissions for 'everyone' on the working folder.
There is nothing wrong with your command, but you need write privileges for the directory with the images. Try running exiftool as admin maybe.
- Phil
Solved.
It was the Bitdefender 'safe files' feature blocking access to exiftool.exe.