Retrieves the width of the specified ColdFusion image.
imageGetWidth(name)
returns numeric
someImage.getWidth()
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | The image on which this operation is performed. |
CF11+ Lucee4.5+ Extract the width of an image
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
width = imgObj.getWidth();
writeOutput(width);