ImageFormat Enum
Identifies an encoded image file format.
public enum ImageFormatRemarks
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
| Name | Value | Description |
|---|---|---|
Unknown | 0 | The format is unknown or not recognized. |
Png | 1 | Portable Network Graphics, including animated PNG (APNG). |
Gif | 2 | Graphics Interchange Format (GIF87a and GIF89a). |
Jpeg | 3 | JPEG (JFIF/EXIF) sequential and progressive images, Huffman coded or arithmetic coded. |
WebP | 4 | WebP (RIFF container): lossy VP8 and lossless VP8L still images and animations. |
Qoi | 5 | Quite OK Image format: lossless 8-bit RGB and RGBA still images. |
Bmp | 6 | Windows BMP (device-independent bitmap), uncompressed subset. |
Tga | 7 | Truevision TGA (TARGA), true-color, grayscale and color-mapped still images. |
Pnm | 8 | Netpbm portable anymap family: PBM, PGM, PPM (P1 to P6) and PAM (P7). |
Tiff | 9 | Tagged 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. |
Ico | 10 | Windows icon container. An icon file holds alternative representations of one drawing; use ImageCollection to reach representations other than the default one. |
Cur | 11 | Windows cursor container: an icon directory whose entries also carry a hotspot. |
Ani | 12 | Windows animated cursor (RIFF ACON container): an animation whose frames are icon or cursor images, each with its own hotspot (FrameMetadata.Hotspot). |
Avif | 13 | AV1 Image File Format: still images and image sequences coded with AV1 in an ISO base media (HEIF) container. |
JpegXl | 14 | JPEG XL (ISO/IEC 18181): a bare codestream or its container, still images and animations, lossy (VarDCT) and lossless (Modular) coding. Encoding is lossless. |
Heic | 15 | High Efficiency Image File Format images coded with HEVC (H.265): still images and image sequences in an ISO base media (HEIF) container. |
Jpeg2000 | 16 | JPEG 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. |
OpenExr | 17 | OpenEXR: 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. |