Hej Urg,
Her er hvad du søger, dette eksempel kan både bruges på gif og jpeg :
----------------------------------------------------------
Public Function CheckPicSpecs(TheFile) As PicInfo
    Dim Content, ImageInfo As PicInfo, Var, FreeFile
    
    FreeFile = FreeFile
    Open File For Binary As FreeFile
    
    Content = Input(10, FreeFile)
    
    Close FreeFile
    
    If Mid(Content, 7, 4) = "JFIF" Then
       ImageInfo.Type = "JPG"
       Open TheFile For Binary As TheFreeFile
       Content = Input(167, TheFreeFile)
       Close TheFreeFile
       ImageInfo.Height = Asc(Mid(Content, 165, 1)) + 256 * Asc(Mid(Content, 164, 1))
       ImageInfo.Width = Asc(Mid(Content, 167, 1)) + 256 * Asc(Mid(Content, 166, 1))
    End If
    
    If Mid(Content, 1, 3) = "GIF" Then
       ImageInfo.Type = "GIF"
       ImageInfo.Width = Asc(Mid(Content, 7, 1)) + 256 * Asc(Mid(Content, 8, 1))
       ImageInfo.Height = Asc(Mid(Content, 9, 1)) + 256 * Asc(Mid(Content, 10, 1))
    End If
    CheckPicSpecs = ImageInfo
End Function
--------------------------------------------------------------------------
PHK