StaticgetGets an image's type from its magic number
The image binary to get the type of
The image type, or null if it isn't supported
StaticisAVIFWhether the data starts like an AVIF (the avif or avis brand)
StaticisBMPStaticisGIFStaticisHDRStaticisICOStaticisJPEGStaticisJXLWhether the data starts like a JPEG XL (a codestream or the container)
StaticisPNGStaticisPNMWhether the data starts like a Netpbm image (PBM, PGM, PPM, PAM or PFM)
StaticisQOIStaticisTGAWhether the data looks like a TGA (which has no magic number: its header has to be consistent)
StaticisTIFFStaticis
Detects image formats by their magic numbers