# IsImageFile()

Verifies whether an image file is valid.

**Requires Extension:** [Image Extension for Jakarta EE (Lucee 7+)](https://download.lucee.org/#B737ABC4-D43F-4D91-8E8E973E37C40D1B)

```
IsImageFile( path=string );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| path | string | Yes | 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

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

```







# Categories

[Decision logic](../../categories/decision.md), [File handling](../../categories/files.md), [Image manipulation](../../categories/image.md)