PeachImage
PeachImage
ImageMetadata Class
Format-agnostic metadata associated with an Image.
public sealed class ImageMetadata
Inheritance System.Object → ImageMetadata
| Properties | |
|---|---|
| ExifLocation | The raw EXIF GPS values (see ExifLocation), or null when the EXIF names none. |
| HasLocation | Whether this image’s metadata says where it was taken: GPS tags in EXIF or XMP, or a place named in IPTC (City, Sub-location or Province/State). Combines what was found in the file when it was loaded from a JPEG, PNG, WebP, TIFF, GIF, AVIF or JPEG XL file with anything in Profiles; the file is examined by its container structure, so this also covers metadata that Profiles does not expose (for example a PNG eXIf chunk or JPEG IPTC data). Always false when SkipMetadata was set. |
| HorizontalDpi | HorizontalResolution expressed in pixels per inch (dots per inch), if known. |
| HorizontalResolution | The horizontal resolution in pixels per metre, if the file records one. Filled from PNG pHYs, JPEG JFIF (or EXIF when JFIF gives only an aspect ratio) and TIFF XResolution; inch and centimetre densities are converted, so every format reports the same unit. A density that gives only a pixel aspect ratio is not a resolution and is left null. |
| Profiles | Raw metadata profiles (EXIF, ICC, XMP, etc.) captured during decode. |
| VerticalDpi | VerticalResolution expressed in pixels per inch (dots per inch), if known. |
| VerticalResolution | The vertical resolution in pixels per metre, if known (see HorizontalResolution). |
| Methods | |
|---|---|
| GetIccColorProfile() | Parses this image’s embedded ICC profile, if it has one PeachImage’s ICC engine can use, or null if there’s no Icc entry in Profiles or the embedded bytes aren’t usable (malformed, or an unsupported device color space/transform) — a missing or unusable profile is a normal, expected outcome here, not an error, so this never throws. |