Checks given file for every supported image file format and if the file is in one of them returns its string identifier (which can be used in LoadFromStream/LoadFromMem type functions).
function DetermineFileFormat(const FileName: string): string;
Imaging (at line 78)
If file is not in any of the supported formats empty string is returned.