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; the formats of the codecs an application registers (ImageConfiguration.Codecs) are all ImageFormat.Custom.

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.
Radiance18Radiance HDR (RGBE): high dynamic range linear-light images whose pixels share an exponent between their three colors, stored flat or run-length encoded (.hdr, .pic).
Psd19Adobe Photoshop documents (.psd) and large documents (PSB, .psb): the composite image Photoshop stores next to the layers is read (the layers are not rendered). Only read: no encoder writes this format.
Dng20Adobe Digital Negative (DNG): the raw samples of a camera sensor (a color filter array or linear raw data) in a TIFF profile, rendered to scene-referred linear light. DNG is read, never written.
Dds21DDS (DirectDraw Surface): textures of Direct3D, block-compressed (BC1 to BC7) or uncompressed, with mipmaps, cube maps, arrays and volume textures (.dds). Read only; ImageCollection reaches every surface.
Dpx22DPX (SMPTE ST 268, Digital Moving-Picture Exchange): film scans and video frames of 1 to 16-bit integer or 32 and 64-bit floating-point components, RGB, luma or Cb, Y, Cr, in either byte order (.dpx).
Cineon23Kodak Cineon: film scans, usually 10-bit printing densities, the predecessor of DPX (.cin). Only decoding is supported.
Ktx224KTX 2.0 (Khronos Texture): GPU textures with mip levels, array layers, cube faces and depth slices, uncompressed or block-compressed (BC1 to BC7, ETC2, EAC, ASTC, Basis Universal ETC1S and UASTC), optionally supercompressed (.ktx2). Read only.
Custom1000A format read or written by a CustomImageCodec of ImageConfiguration.Codecs, not by the library itself. ImageInfo.FormatInfo and CustomImageEncoder.FormatInfo tell which one.