Asp Net Get Image Size

Asp Net Get Image Size how to compress large size image without losing image