On Thu, 06 Apr 2006 09:03:46 -0500, Stilts <st*****@hotmail.co.uk> wrote:
Working in asp (not asp.net) I need to read the width and height of an
image before they are displayed on the page.
ImageMagick comes with a COM object that can do this.
' = Function: Dimensions =
' Use an instance of the ImageMagickObject to determine the width and
' height of an image.
'
' Arguments:
' im - An instance of the ImageMagickObject.
' src - The name of the source file.
'
' Returns:
' An array containing the width and height as elements 0 and 1,
' respectively.
Function Dimensions(im, src)
Dim msgs
msgs = im.Identify("-format", "%w,%h", src)
Dimensions = Split(msgs)
End Function
You can find it at
http://www.imagemagick.org/.
--
Justin Piper
Bizco Technologies
http://www.bizco.com/