Image Processor Pro can do what you need except for the save in the same folder bit. You would have to save to a different folder then move them afterwards. I have a version in the works that adds this capability in the works.
You can find the current version at:
http://www.russellbrown.com/scripts.html
I'll post here when the new rev is ready.
-X