Pos, Neg or Koda? What SF8-HDR-type does the file have?

Written by  on June 17, 2015 

I needed a quick and dirty solution to automatically check for the type of the given HDR-scan. Since some custom makernotes are used, the question was how to get by using exiftool the necessary information. A quick comparison with hexdump and diff showed the difference in the binary output.

So this tiny script will return the type of the given input as exitcode (checkable in terminal via “echo $?”): 1 for positive, 2 for negative and 3 for kodachrome. 0 for errors … and yes, this negates the POSIX-semantic! I guess someone more capable could turn it into a one-liner. Nevermind: it works and this is sufficient for my usage.

posNegKod0.1.zip

Category : BashexiftoolSilverFast8

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.