PeachImage

PeachImage.ImageMetadata

ImageMetadata.HasLocation Property

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.

public bool HasLocation { get; }

Property Value

System.Boolean

Remarks

Evaluated on each call, so avoid calling it in a hot loop on an image with large profiles.