Image size problem

Is there a way to have a 2mb file be shrunk down when uploading? Facebook does it somehow. I can’t seem to find any answers searching in Google.

Otherwise, I guess I will just have to make people use Picasa or something to shrink file sizes.