Coldfusion 上传后强制图像宽度
在执行cffile action=“upload”之后,我想检查宽度(假设是图像)。我目前正在使用CF8Coldfusion 上传后强制图像宽度,coldfusion,Coldfusion,在执行cffile action=“upload”之后,我想检查宽度(假设是图像)。我目前正在使用CF8 是否有一个内置函数来获取图像的宽度?如果在CF9中有一个内置函数,我想我需要知道,当我们更新时。根据LiveDocs,该功能存在于CF8中 Adobe提供的示例应能让您了解: <!--- This example shows how to retrieve information associated with the image. ---> <!--- Create a
是否有一个内置函数来获取图像的宽度?如果在CF9中有一个内置函数,我想我需要知道,当我们更新时。根据LiveDocs,该功能存在于CF8中 Adobe提供的示例应能让您了解:
<!--- This example shows how to retrieve information associated with the image. --->
<!--- Create a ColdFusion image from a JPEG file.--->
<cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage">
<!--- Retrieve the information associated with the image. --->
<cfset info=ImageInfo(myImage)>
<cfdump var="#info#"></cfdump>
<p>height = <cfoutput>#info.height#</cfoutput>
<p>width = <cfoutput>#info.width#</cfoutput>
<p>source = <cfoutput>#info.source#"</cfoutput>
高度=#信息高度#
宽度=#信息宽度#
source=#info.source#“
根据LiveDocs,该功能存在于CF8中
Adobe提供的示例应能让您了解:
<!--- This example shows how to retrieve information associated with the image. --->
<!--- Create a ColdFusion image from a JPEG file.--->
<cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage">
<!--- Retrieve the information associated with the image. --->
<cfset info=ImageInfo(myImage)>
<cfdump var="#info#"></cfdump>
<p>height = <cfoutput>#info.height#</cfoutput>
<p>width = <cfoutput>#info.width#</cfoutput>
<p>source = <cfoutput>#info.source#"</cfoutput>
高度=#信息高度#
宽度=#信息宽度#
source=#info.source#“