I am displaying images in a gridview as thumbnails restricting width and height to 150 and 100 respectively. For portrait size images they are distorted. Is there any way that I can check for image height and width so that I can display reduced in correct proportions