IsImageFile()
Verifies whether an image file is valid.
Requires Extension: Image extension
IsImageFile( path=string );
Returns: Boolean
Argument | Description |
---|---|
path
string,
required
|
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
writeDump(isimagefile("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4"));
See also
- Decision logic
- File handling
- Image manipulation
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)