Returns a structure that contains information about the image, such as height, width, color model, size, and filename.

imageInfo(name) → returns struct

Member Function Syntax

Argument Reference

name string

The image on which this operation is performed.

Sample code invoking the imageInfo function

Uses the imageRead function to read an image from a url.

<cfset img = imageRead("")>
<cfset imgInfo = imageInfo(img)>
<cfoutput>Image is #imgInfo.height#px high and #imgInfo.width#px wide.</cfoutput>

Expected Result: Image is 20px high and 10px wide.

CF 11+ Lucee 4.5+ Extract the image info

imgObj = imageRead("");
info =;

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub