I wrote a perl script (don't laugh) to calculate the bearing, but always get this error when writing it to the image:
Tag 'ImageDirectionRef' does not exist
Tag 'ImageDirection' does not exist
Nothing to do.
Indeed, the tags do not exist beforehand, thats why i try to write them.
Please find the images i use for testing here: