Link to home
Start Free TrialLog in
Avatar of mic-net
mic-net

asked on

How to get image dimensions in classic asp?

I used to use the e-kov picturepreviewer.dll to extract image dimensions and details about uploaded image files. Even though I've registered the dll on my new Win 2016 server, it keeps throwing an error "object required". My question is; what other methods are there to get image height, width, size and other details in classic asp?
Avatar of Big Monty
Big Monty
Flag of United States of America image

I would recommend using aspUpload. It's the industry standard (or as close to it as you'll get in asp) for image manipulations.
Otherwise we'll need to see some code to see what you're trying to do.
Avatar of mic-net
mic-net

ASKER

Here is a sample of the code:
<%
Set imgCom = Server.CreateObject("eKov.PicturePreviewer")
imagepath = server.MapPath("/images/" & folder)
fullpath = imagepath & "\" & pageimage
imgCom.LoadFromFile (fullpath)
iHeight = imgCom.Height
iWidth = imgCom.Width
set imgCom = nothing
%>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mic-net

ASKER

I gave up and went with aspupload. Thanks for the suggestion.