IsImageFile()

edit

Verifies whether an image file is valid.

Requires Extension: Image Extension for Jakarta EE (Lucee 7+)

IsImageFile( path=string );

Returns: Boolean

Argument Description
path
string, required
edit

The pathname of the file to be checked.

The pathname can be absolute or relative to the CFM page and must be enclosed in quotation marks.

Alias: value, file

Examples

edit
writeDump(isimagefile("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4"));

See also