Last post Mar 02, 2016 05:17 PM by PatriceSc
Mar 02, 2016 04:49 PM|javaro|LINK
I found several threads to get Width & Height from an image which resides on a server / or localhost ...
but nowhere for an image not on my server ..
Any clue to get around ?
As for example i need to get the Width and Heigt from this image ..
this BELOW works for images on a server as it uses Server.Mappath and the Object written by Persists , which resides on my server ..
set Jpeg = Server.createObject("Persits.Jpeg")
Path = Server.Mappath("image.jpg")
' need something like : Path = "http://i.colnect.net/images/o/372/970/372970.jpg" but this
does not work ...
Jpeg.Width = Jpeg.OriginalWidth
Jpeg.Height = Jpeg.OriginalHeight
response.write("W=" + Cstr( Jpeg.Width ) + "<br>")
response.write("H=" + Cstr( Jpeg.Height ) + "<br>")
KIS !! Keep it simple ...
Mar 02, 2016 05:17 PM|PatriceSc|LINK
Then you could use
https://msdn.microsoft.com/en-us/library/ez801hhe(v=vs.110).aspx to download the image somewhere on the server (or maybe just keep it in memory) and you are back at your local case for which it seems you already have working code.