In my script, I want to check the image's dpi using AspImage. But the result is not right.
I tested two images, both dpi=1. urls:
My code:
Can I get dpi by using MyImage.DPI? If not, how should I do?
Thanks for help.
I tested two images, both dpi=1. urls:
My code:
Code:
<%
name=request.querystring("name")
Set MyImage = Server.CreateObject("AspImage.Image")
path="/keller/image/" & name & ".jpg"
MyImage.LoadImage (server.MapPath(path))
Dim dpi
dpi= MyImage.DPI
response.write "dpi is " & dpi
%>
Thanks for help.