File Format Functions

Function to check for the file format of the image.

class check_file_format.FileFormat(path)

A class to check for the file format of the image.

file_format()

File format check. Checks for the file format of the image.

Parameters:

path (string) – the path to the desired file.

Returns:

the file format of the image displayed in lower case letters.

Return type:

string