imageGetHeight

Retrieves the height of the ColdFusion image in pixels.

imageGetHeight(name) → returns Numeric

Member Function Syntax

someImage.getHeight()

imageGetHeight Argument Reference

name String
Required

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