view plugins/rotate/geeqie-rotate @ 1640:ab5945017b4a

Update documentation Now it holds a more verbose doxygen description as discussed in mailing list. - Doxygen style description - Small visibility changes - Commit message change
author mow
date Sat, 13 Jun 2009 22:19:57 +0000
parents f6c8b76d41ca
children 34c71cbbbd26
line wrap: on
line source

#!/bin/sh

# This is a helper script that rotate jpeg files using jpegtran

rotation=$1
shift

for file in "$@" ; do
	tmp="$file".$$
	if jpegtran -rotate "$rotation" -copy all -outfile "$tmp" "$file"; then
		mv -f "$tmp" "$file";
	else
		rm -f "$tmp";
	fi
done