Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get image's dpi using AspImage

Status
Not open for further replies.

lily1

Programmer
Mar 13, 2004
17
US
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:
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
%>
Can I get dpi by using MyImage.DPI? If not, how should I do?
Thanks for help.
 
I wrote to serverobjects.com yesterday, but have not got response. The asp code works, but all returns dpi =1, I do not think it is correct. Do you know why? Thanks for your help.
 
i'll look into it later this evening and try to give you a better solution, perchance can you post the 2 sample images in links in here so i can fetch them to work with them locally?
 
Sorry, DreXor, I am in vacation now and have not checked this forum for some time. I already talked to hosting company and they fixed the problem in server side . Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top