kodeagent.kutils.is_image_file#

kodeagent.kutils.is_image_file(file_type) bool[source]#

Identify whether a given MIME type is an image.

Parameters:

file_type – The file/content type.

Returns:

True if an image file; False otherwise.