guessFromExtension

Guess the image file format from extension