salve, ho questo script per controllare la larghezza e l'altezza di un immagine.

Set Image = Server.CreateObject("AspImage.Image")
strPath = Server.MapPath("/company/" & directory & "/" & logo & "")
Image.LoadImage(strPath)
Iheight=Image.MaxY
Iwidth=Image.MaxX
if Iheight>500 then
Iheight="500"
end if
if iwidth>500 then
Iwidth="500"
end if
response.write ""
set image=nothing

il problema è che controllando l'output sul sito, vedo stampato



cioè altezza e larghezza = 0 e non si vede nulla.

come mai ?

potete aiutarmi ?