imageRead

Reads the source pathname or URL and creates a ColdFusion image.

imageRead(path) → returns Image

Argument Reference for the imageRead function

path

Required: Yes
On-disk or in-memory pathname or URL of the source image.

Examples sample code invoking the imageRead function


Using script syntax

Read an image from URL and output

imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
cfimage(action="writeToBrowser", source=imgObj);

Fork me on GitHub