From ca41eddfdc979955105cce572e659941544d6f6d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 9 Oct 2014 20:44:15 +0100 Subject: alles neu macht der mai --- jpegtran-rotate-lossless | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 jpegtran-rotate-lossless (limited to 'jpegtran-rotate-lossless') 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> ' - 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 - -- cgit v1.2.3