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?
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.
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
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I gave up and went with aspupload. Thanks for the suggestion.