<%
dim iWidth, iheight
sub ImgDimension(img,w,h)
'img=>圖片路徑
'w=>最大寬度
'h=>最大高度
dim myImg, fs
Set fs= CreateObject("Scripting.FileSystemObject")
if not fs.fileExists(img) then exit sub
set myImg = loadpicture(img)
iWidth = round(myImg.width / 26.4583)
iheight = round(myImg.height / 26.4583)