I'm having trouble getting nix up on my laptop (the wireless annoyance), so I'm just running Debian in the VM right now. I don't think GIMP has the ability to do it from the command line, but ImageMagick should as after he mentioned that, I remembered trying to use it on Windows long ago...