If you're on MX...here's a function for ya to drop in a CFC:
<!---(Function:
ImageSize)------------------------------------------------------
Date Created: November 28, 2003
Author: Bryan
Arguments: FileLoc - full path of image to get details for (string)
required
Purpose: returns file width/height
Returns: ImageInfo structure with ImgWidth/ImgHeight keys
--->
<cffunction name="ImageSize" returnType="struct" access="public">
<cfargument name="FileLoc" type="string" required="Yes">
<cfset jFileIn =
createObject("java","java.io.File").init(ARGUMENTS.FileLoc)>
<cfset ImageInfo = StructNew()>
<cfset ImageObject =
createObject("java","javax.imageio.ImageIO").read(jFileIn)>
<cfset ImageInfo.ImgWidth = ImageObject.getWidth()>
<cfset ImageInfo.ImgHeight = ImageObject.getHeight()>
<cfreturn ImageInfo>
</cffunction>
Enjoy ;-)
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184432
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54