I have a DIV in which people can upload and display images. If the image is square or rectamgle the image is displayed fine. However if a user uploads a image which is very tall and very narror then the whole display of the site is messed up.

Is it possible to prevent people from uploading images of a certain dimension. For example it cant be 25px wide by 100px height?

Or is there another option I can use?