Whatever message this page gives is out now! Go check it out!
IsImageFile(path)| Parameter | Description |
path | Required. The pathname of the on-disk or in-memory file, or URL, to be checked. The pathname can be absolute or relative to the CFM page and must be enclosed in quotation marks. |
<!--- Use the IsImageFile function to determine whether an image retrieved from the artwork table in the cfartgallery database is a valid image file. --->
<cfif IsImageFile("images/#artwork.largeImage#")>
<cfset myImage=ImageNew("images/#artwork.largeImage#")>
<cfset ImageResize(myImage,50,"")>
<cfimage action="writeToBrowser" source="#myImage#">
<cfelse>
<p>I'm sorry, there is no image associated with the title you selected. Please click the Back button and try again.</p>
</p>
</cfif>