isImage

Determines whether a variable returns a ColdFusion image.

isImage(name) → returns boolean

isImage Argument Reference

name string
Required

No Help Available

Examples sample code invoking the isImage function

Check the result is codfusion image or not

<cfset myImage  = ImageNew("./sample.png")>
<cfif IsImage(myImage)>
	<cfimage action="writeToBrowser" source="#myImage#">
</cfif>

Fork me on GitHub