Skip to main content

get_available_image_extensions

Retrieves a list of supported image file extensions by initializing the Pillow library and extracting keys from its extension registry.

def get_available_image_extensions() - > list

Retrieves a list of supported image file extensions by initializing the Pillow library. This is used to determine which file formats can be processed based on the current environment's installed codecs.

Returns

TypeDescription
listA list of lowercase strings representing supported file extensions without the leading dot, or an empty list if Pillow is not installed.