detectFormat

fnImageFormat detectFormat(string filename)

Detects image format from filename extension.

Parameters

filenamePath to the image file

Returns

Detected ImageFormat, or UNKNOWN if not recognized