imageGetHeight

Retrieves the height of the ColdFusion image in pixels.

imageGetHeight(name) → returns Numeric

Member Function Syntax

someImage.getHeight()

Argument Reference for the imageGetHeight function

name

Required: Yes
The image on which this operation is performed.

Examples sample code invoking the imageGetHeight function


Using getHeight member 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);

Fork me on GitHub