diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
commit | 95b3e4bb744932ce4eac14bb350cc0455d15848a (patch) | |
tree | c96093d9667c87264a8820d876041fe96b068f57 /jpegtran_rotate_lossless | |
parent | fca926851e1d56eeb0044727fe976252d646f48d (diff) |
mv
Diffstat (limited to 'jpegtran_rotate_lossless')
-rwxr-xr-x | jpegtran_rotate_lossless | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/jpegtran_rotate_lossless b/jpegtran_rotate_lossless deleted file mode 100755 index f876e10..0000000 --- a/jpegtran_rotate_lossless +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -function usage { - echo 'Usage: jpegtran-rotate-lossless.sh <90|180|270> <file>' - exit 1 -} - -ROTATION=$1 -FILE=$2 - -if [ $# -ne 2 ]; then - usage -fi - -case $ROTATION in - 90|180|270) - true ;; - *) - usage ;; -esac - -jpegtran -rotate $ROTATION -trim -copy all $FILE > $FILE-rotate -if [ $? -ne 0 ]; then - echo 'jpegtran-rotate-lossless.sh: jpegtran failed' - exit 1 -fi - -mv $FILE-rotate $FILE -if [ $? -ne 0 ]; then - 'jpegtran-rotate-lossless.sh: mv failed' - exit 1 -fi - -exit 0 - |