Error when trying to batch copy CR2 orientation tag to JPG

Started by frorb, May 11, 2018, 01:04:49 PM

Previous topic - Next topic

frorb

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

frorb

Solved.

It was the Bitdefender 'safe files' feature blocking access to exiftool.exe.