view 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
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