isTypeSupported

suspend fun isTypeSupported(type: String): Boolean(source)

The ImageDecoder.isTypeSupported() static method checks if a given MIME type can be decoded by the user agent.

MDN Reference