exiftool
Scrub images before you share them!
I was surprised I never mentioned this, but I often remove all metadata from image-files before publishing them. I am no criminal, but where and when some pictures have been taken is none of the business of strangers 😉
1 |
exiftool -all= foo.jpg |
Link for more details.
Pos, Neg or Koda? What SF8-HDR-type does the file have?
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.
Get an overview which SilverFast8-version was used to process your photos
It is very interesting to see which SilverFast8-version was used for scanning and processing the photos you have digitalized.
The following crude bash-chain-command relies on the GNU-tools, exiftool and some intermedite files. It is not sophisticated or using any syntactic sugar: it just works*.
(* means: has a lot of improvement-potential)
abilities:
- checks for exiftool first: if not available (missed the installation?), then abort
- checks all original SF8-output-types: tif, jpg, jp2 and dng
- searchs stupidly for the “Software”-tag; if other software touched the files that can be missing
- collects the data into files “versions.txt” and “uniqed.txt” which are not deleted after the run!
1 2 3 4 |
type exiftool >/dev/null 2>&1 || { echo >&2 "required exiftool is not installed. Aborting"; exit 1; } && find . -type f \( -name "*.tif" -o -name "*.jpg" -o -name "*.jp2" -o -name "*.dng" \) -exec exiftool "{}" \; | grep "Software : SilverFast" > versions.txt && sort versions.txt | uniq -c | sort -nr > uniqed.txt && cat uniqed.txt |
example output:
1 2 3 4 5 6 7 8 9 10 11 12 |
234 Software : SilverFast 8.0.1 r20 (Feb 6 2013) 92 Software : SilverFast 8.0.1 r30 (Sep 11 2013) 69 Software : SilverFast 8.0.1 r20 (Feb 8 2013) 58 Software : SilverFast 8.0.1 r24 (Apr 23 2013) 24 Software : SilverFast 8.0.1 r19 (Jan 15 2013) 23 Software : SilverFast 8.0.1 r35 (Nov 25 2013) 23 Software : SilverFast 8.0.1 r21 (Feb 13 2013) 20 Software : SilverFast 8.0.1 r42 (Mar 6 2014) 19 Software : SilverFast 8.0.1 r50 (Jul 15 2014) 18 Software : SilverFast 8.2.0 r1 (Oct 9 2014) 17 Software : SilverFast 8.0.1 r54 (Sep 12 2014) 14 Software : SilverFast 8.0.1 r51 (Aug 4 2014) |
ps. Just noticed that SF6-files are also checked correctly.