#!/bin/sh # pa_exifautotran [list of files] # # Transforms JPEG files so that Exif Orientation becomes 1 # # blatant copy of exitautotran shell script with: # Minor change made to ignore failure of jpegtran (it was failing # b/c Samsung images are incomplete, but the rotation works) for i do case $i in -v|--version) echo "$0 (pa variant)"; exit 0;; -h|--help) cat <&2 jpegtran -copy all $transform "$i" > tempfile rm "$i" mv tempfile "$i" jpegexiforient -1 "$i" fi done