Whatever message this page gives is out now! Go check it out!

IsImage

Last update:
May 18, 2026

Description

Determines whether a variable returns a ColdFusion image.

Returns

True, if the value is a ColdFusion image; False, otherwise.

Category

Syntax

IsImage(image)

See also

History

ColdFusion (2018 release): Introduced named parameters.
ColdFusion 8: Added this function.

Parameters

Parameter
Description
image
Required. The ColdFusion variable that is checked.

Usage

Use this function to determine whether a variable returns a ColdFusion image.

Example

<cfif IsImageFile("images/#form.art#")> 
<cfset myImage=ImageNew("images/#form.art#")> 
... 
<cfset IsImage("#myImage#")> 
<cfimage action="writeToBrowser" source="#myImage#"> 
</cfif>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page