- orientation=$(exif $i \
- | grep ^Orientation \
- | head -1 \
- | sed -e "s/^[^|]*|//" \
- | sed -e "s/ *$//")
-
- case ${orientation} in
- ""|"top - left")
- rotation_cmd=""
- ;;
-
- "right - top")
- rotation_cmd="-rotate 90"
- ;;
-
- "left - bottom")
- rotation_cmd="-rotate 270"
- ;;
-
- *)
- rotation_cmd=""
- echo "Unknown orientation \"${orientation}\" !"
- ;;
- esac
+ # orientation=$(exif $i \
+ # | grep ^Orientation \
+ # | head -1 \
+ # | sed -e "s/^[^|]*|//" \
+ # | sed -e "s/ *$//")
+
+ # case ${orientation} in
+ # ""|"top - left")
+ # rotation_cmd=""
+ # ;;
+
+ # "right - top")
+ # rotation_cmd="-rotate 90"
+ # ;;
+
+ # "left - bottom")
+ # rotation_cmd="-rotate 270"
+ # ;;
+
+ # *)
+ # rotation_cmd=""
+ # echo "Unknown orientation \"${orientation}\" !"
+ # ;;
+ # esac