For CF, a bit of googlin' returned:

 if you are running MX or have java installed on there you could try... 


  function getImageDimensions(sFile) 
  { 
  var strRtn = StructNew(); 
  var oImage = createObject("java","javax.swing.ImageIcon").init(sFile); 

  strRtn.Width = oImage.getIconWidth(); 
  strRtn.Height = oImage.getIconHeight(); 
  strRtn.FileName = GetFileFromPath(sFile); 

  return strRtn 
  } 

Haven't tested it myself, but if someone else could? ...

I also have a copy of CFX_ImageSize custom tag at home that I could email you if 
needed...

HTH

Miles.

-----Original Message-----
From: James Ellis [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 11:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] URL Encoded


Not sure if CF can do something similar but in PHP you can do this:

http://sydney.ug.php.net/phpBB2/viewtopic.php?t=45
getimagesize() is a built in function that returns the width and height in html format 
for use in an image tag. No need to know the image size beforehand.

Cheers
James

Taco Fleur wrote: 
 I have no width or height tags because I do not know the size beforehand, I know I 
should use this cause it makes the browser render it quicker, but then I'd have to 
make page for each photo.
***************************************************** The discussion list for 
http://webstandardsgroup.org/ ***************************************************** 
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************

Reply via email to