Determines whether a variable returns a ColdFusion image.
True, if the value is a ColdFusion image; False, otherwise.
IsImage(image)
ColdFusion (2018 release): Introduced named parameters.
ColdFusion 8: Added this function.
Parameter |
Description |
|---|---|
image |
Required. The ColdFusion variable that is checked. |
Use this function to determine whether a variable returns a ColdFusion image.
<cfif IsImageFile("images/#form.art#")>
<cfset myImage=ImageNew("images/#form.art#")>
...
<cfset IsImage("#myImage#")>
<cfimage action="writeToBrowser" source="#myImage#">
</cfif>
Sign in to your account