comparison plugins/rotate/geeqie-rotate @ 1614:f6c8b76d41ca

Add .desktop files to restore lossless jpeg rotation via editors.
author zas_
date Tue, 26 May 2009 19:41:22 +0000
parents
children 34c71cbbbd26
comparison
equal deleted inserted replaced
1613:c85dc2a7d6da 1614:f6c8b76d41ca
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