Below is how to display image file specs (width and height, etc)
1st, you have to import system.IO, at the head of your code behind, add
Imports System.Drawing.Imaging
Return width of the image file
Public Shared Function intImageWidth(ByVal strFileName As String) As Integer
'Create Image Object
Dim objImage1 As System.Drawing.Image
objImage1 = System.Drawing.Image.FromFile(strFileName)
intImageWidth = objImage1.Width
objImage1.Dispose()
End Function
Return Height of the Image File
Public Shared Function intImageHeight(ByVal strFileName As String) As Integer
'Create Image Object
Dim objImage1 As System.Drawing.Image
objImage1 = System.Drawing.Image.FromFile(strFileName)
intImageHeight = objImage1.Height
objImage1.Dispose()
End Function