Limit Image Size when Uploading (Height and Width)

Hi,

How can I limit the width and height of images before they are uploaded? Ideally, I would want the administrator still to be able to upload any size, but not the contributors.

Thanks!