format package:sdl2-image

Tries to detect the image format by attempting formattedAs with each possible Format. If you're trying to test for a specific format, use a specific formattedAs directly instead.
Each of the supported image formats.
A case-insensitive desired format, e.g. "jpg" or "PNG".
Tests whether a ByteString contains an image of a given format.