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

ImageGetHeight

Last update:
May 18, 2026

Description

Retrieves the height of the ColdFusion image in pixels.

Returns

The height of the specified ColdFusion image in pixels.

Category

Function syntax

ImageGetHeight(name)

See also

History

ColdFusion 8: Added this function.

Parameters

Parameter
Description
name
Required. The ColdFusion image on which this operation is performed.

Usage

Use this function to retrieve the height of a ColdFusion image.

Example

<!--- This example shows how to retrieve the height of an image. ---> 

<!--- Create a ColdFusion image from a JPEG file. ---> 

<cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage"> 

<!--- Retrieve the height of the image. ---> 

<cfset height=#ImageGetHeight(myImage)#> 

<!--- Display the height of the image. ---> 

<cfdump var="#height#">

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