If you are using MX then this code should work...

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
}

HTH




-----Original Message-----
From: BOUDOT Christian [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 16:42
To: CF-Talk
Subject: getting image info with CF


Hi,

Is there any way to get the width and height information of an image file
with Coldfusion?

thanks

Chris

__________________________________________
 Christian BOUDOT
 Intrasoft International
 89-91 route de Thionville
 L-2611 Luxembourg
 Tel: +352 44 10 12 21 05
 Fax: +352 44 10 12 23 59



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to