Resize Photo Automatically?

Hey everyone,

I was wondering if you guys knew of a plugin or a way to allow photos to be resized automatically?

For example, a user uploads a photo through the photo uploader. I want to make sure that it is automatically trimmed and cropped to 400 x 400?

Do you guys know of a tool that can solve this problem?