imageGetHeight

Retrieves the height of the ColdFusion image in pixels.

imageGetHeight(name) → returns numeric

Member Function Syntax

someImage.getHeight()

Argument Reference

name string
Required

The image on which this operation is performed.

Examples
Sample code invoking the imageGetHeight function

CF 11+ Lucee 4.5+ Extract the height of an image

imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
height = imgObj.getHeight();
writeOutput(height);

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

Fork me on GitHub