If your are a Photoshop user you can download my web resize and sharpen action from here....

http://russellspixelpix.blogspot.com/2011/...-photoshop.html

It will resize based on the longest...