Getting an image's information using the CFIMAGE tag in ColdFusion
The following example shows how you can get an image’s information (width, height, alpha, etc) using the <CFIMAGE> tag in ColdFusion, or by using the imageNew() and imageInfo() methods.
And the output of the <CFIMAGE> tag is as follows:
Or, you could get the image info in a <CFSCRIPT> block, as seen in the following example:
The following example shows how you can get an image’s information (width, height, alpha, etc) using the <CFIMAGE> tag in ColdFusion, or by using the imageNew() and imageInfo() methods.