Function __global->is_image
Definitions
sources/images.php
- Find whether the image specified is actually an image, based on file extension.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name | string | required parameter | N/A | N/A | A URL or file path to the image |
$criteria | integer | required parameter | N/A | N/A | A bitmask of IMAGE_CRITERIA_* constants that the image must match |
$as_admin | boolean | False | N/A | N/A | Whether there are admin privileges, to render dangerous media types (client-side risk only) |
$mime_too | boolean | False | N/A | N/A | Whether to check mime as well as file extension. A full URL must have been passed |
Return
- Whether the string pointed to a file appeared to be an image
- Type: boolean
- Set: N/A
- Range: N/A