[Klug-general] GIMP Scripting

Paul Littlefield info at paully.co.uk
Thu Jun 23 12:15:03 UTC 2011


> http://photobatch.stani.be/

Nice app, and thanks to Julia as well for those IM commands.

Here is what I have so far:-

$ cat ~/Bin/rotate_and_resize.sh

#!/bin/bash
FILENAME=$( echo "$1" | sed 's/\..\{3\}$//' )
convert -rotate -90 "$1" "${FILENAME}_rotated.jpg"
convert -resize 1024x768 "${FILENAME}_rotated.jpg" "${FILENAME}_resized.jpg"

Paully




More information about the Kent mailing list