ImageFormat Enum

Identifies an encoded image file format.

public enum ImageFormat

Remarks

Formats are detected from content, never from file names. Animated PNG (APNG) is reported as ImageFormat.Png: it is a PNG variant, not a competing signature. New formats are added as new members.

Fields

NameValueDescription
Unknown0The format is unknown or not recognized.
Png1Portable Network Graphics, including animated PNG (APNG).
Gif2Graphics Interchange Format (GIF87a and GIF89a).
Jpeg3JPEG (JFIF/EXIF) sequential and progressive images, Huffman coded or arithmetic coded.
WebP4WebP (RIFF container): lossy VP8 and lossless VP8L still images and animations.
Qoi5Quite OK Image format: lossless 8-bit RGB and RGBA still images.
Bmp6Windows BMP (device-independent bitmap), uncompressed subset.
Tga7Truevision TGA (TARGA), true-color, grayscale and color-mapped still images.
Pnm8Netpbm portable anymap family: PBM, PGM, PPM (P1 to P6) and PAM (P7).
Tiff9Tagged Image File Format, including BigTIFF. A TIFF file is a document of one or more pages; use ImageCollection to reach pages other than the first one.
Ico10Windows icon container. An icon file holds alternative representations of one drawing; use ImageCollection to reach representations other than the default one.
Cur11Windows cursor container: an icon directory whose entries also carry a hotspot.
Ani12Windows animated cursor (RIFF ACON container): an animation whose frames are icon or cursor images, each with its own hotspot (FrameMetadata.Hotspot).
Avif13AV1 Image File Format: still images and image sequences coded with AV1 in an ISO base media (HEIF) container.
JpegXl14JPEG XL (ISO/IEC 18181): a bare codestream or its container, still images and animations, lossy (VarDCT) and lossless (Modular) coding. Encoding is lossless.
Heic15High Efficiency Image File Format images coded with HEVC (H.265): still images and image sequences in an ISO base media (HEIF) container.
Jpeg200016JPEG 2000 (ISO/IEC 15444-1): a codestream or a JP2 file, coded with the reversible or the irreversible wavelet transformation. Codestreams that use the high-throughput block coder (ISO/IEC 15444-15, HTJ2K) are read.
OpenExr17OpenEXR: high dynamic range scene-linear images of 16-bit (half) or 32-bit floating-point samples, stored as scan lines or tiles with lossless or lossy compression.