Gimp-scripts is a project mainly written in Scheme, it's free.
Added batch image scaling script to rescale my cartoons
Running a script (command line)
gimp -i -b "(batch-image-scale \"*.jpg\" 300 400)"