Mercurial > geeqie
comparison plugins/rotate/geeqie-rotate @ 1616:5b36a6ff55ae
Add .desktop files to restore lossless jpeg rotation via editors.
author | zas_ |
---|---|
date | Tue, 26 May 2009 19:41:22 +0000 |
parents | |
children | 2a779a1855d7 |
comparison
equal
deleted
inserted
replaced
1615:b1c5c5e4826d | 1616:5b36a6ff55ae |
---|---|
1 #!/bin/sh | |
2 | |
3 # This is a helper script that rotate jpeg files using jpegtran | |
4 | |
5 rotation=$1 | |
6 shift | |
7 | |
8 for file in "$@" ; do | |
9 tmp="$file".$$ | |
10 if jpegtran -rotate "$rotation" -copy all -outfile "$tmp" "$file"; then | |
11 mv -f "$tmp" "$file"; | |
12 else | |
13 rm -f "$tmp"; | |
14 fi | |
15 done |