FILENAME_IS_IMAGE

Filename is image

Description

Returns true if the given string is or has a file extension that belongs to a web-compatible image MIME type.

Function signature

FILENAME_IS_IMAGE(fileextension: String) => Boolean

Parameter

Description

File extension

File extension

Examples

Formula

Return value

FILENAME_IS_IMAGE("apng")

true

FILENAME_IS_IMAGE("test.jpg")

true

FILENAME_IS_IMAGE("/folder/test.best.svg")

true

FILENAME_IS_IMAGE("video.mp4")

false

FILENAME_IS_IMAGE("test.jpg.txt")

false