Verifies whether an image file is valid.
isImageFile(path)
→ returns boolean
Check the file is image or not.
<cfset myImage = expandPath("./sample.png")>
<cfif IsImageFile(myImage)>
<cfimage action="writeToBrowser" source="#myImage#">
</cfif>