What we need is little bits like that documented Jeff :) I didn't actually know that either despite knowing a fair bit of command line work. Never crossed my mind the command line would handle images. Nice job.
Photoshop CS3 does it btw automatically saving as any file type, resolution, size, etc. Just murders your memory for like half an hour. And it isn't free and nowhere near as quick evidently.
I am going to look for a nice easy way to rip all the code out of these forums to stick somewhere either on BLAG site or wiki though my wiki skills are a bit off the mark.
"What we need is little bits like that documented Jeff "
Now THAT would be sweet!!