Determines if a given file is a png, jpg, bmp, gif, tiff or webp image, based on the file signature. If the file is none of these, NULL is returned. If the file does not exist, an error is thrown.
1 | image_format(file_path)
|
file_path |
File path of a file that may or may not be an image. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.