Table of Contents

Class XmpNamespaces

Namespace
Egami.Metadata
Assembly
Egami.dll

The namespace URIs of the XMP schemas apps use most.

public static class XmpNamespaces
Inheritance
XmpNamespaces
Inherited Members

Examples

XmpData xmp = new()
{
    Title = "Harbour at dawn",
    Creators = ["A. Photographer"],
    Keywords = ["harbour", "Bergen"],
    Rating = 4,
};

// Any property, by namespace URI and local name; structures and arrays nest.
XmpStruct contact = new();
contact.Set(new XmpName(XmpNamespaces.IptcCore, "CiEmailWork"), "photo@example.com");
xmp.Set(new XmpName(XmpNamespaces.IptcCore, "CreatorContactInfo"), contact);
if (xmp.TryGet(new XmpName(XmpNamespaces.DublinCore, "title"), out object? title) && title is XmpArray languages)
{
    languages.SetLanguage("nb-NO", "Havn ved daggry");
}

ReadOnlyMemory<byte> packet = xmp.ToBytes();   // canonical RDF/XML with padding

Fields

CameraRaw

Camera Raw settings (crs).

public const string CameraRaw = "http://ns.adobe.com/camera-raw-settings/1.0/"

Field Value

string

DublinCore

Dublin Core (dc): title, description, creator, subject (keywords), rights.

public const string DublinCore = "http://purl.org/dc/elements/1.1/"

Field Value

string

Exif

EXIF properties (exif): PixelXDimension, SubjectArea, DateTimeOriginal.

public const string Exif = "http://ns.adobe.com/exif/1.0/"

Field Value

string

ExifCipa

EXIF 2.3 and later properties, in CIPA's namespace (exifEX): LensModel, BodySerialNumber.

public const string ExifCipa = "http://cipa.jp/exif/1.0/"

Field Value

string

IptcCore

IPTC Core (Iptc4xmpCore): CreatorContactInfo, Location, SubjectCode.

public const string IptcCore = "http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"

Field Value

string

IptcExtension

IPTC Extension (Iptc4xmpExt): LocationCreated, PersonInImage, ArtworkOrObject.

public const string IptcExtension = "http://iptc.org/std/Iptc4xmpExt/2008-02-29/"

Field Value

string

Photoshop

Photoshop (photoshop): Headline, City, Country, Credit, Source.

public const string Photoshop = "http://ns.adobe.com/photoshop/1.0/"

Field Value

string

Rdf

RDF, the syntax XMP is written in; its names are structure, not properties.

public const string Rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

Field Value

string

Tiff

TIFF properties (tiff): Orientation, Make, Model, ImageWidth.

public const string Tiff = "http://ns.adobe.com/tiff/1.0/"

Field Value

string

Xml

The xml: namespace, which holds xml:lang.

public const string Xml = "http://www.w3.org/XML/1998/namespace"

Field Value

string

XmpBasic

XMP Basic (xmp): CreateDate, ModifyDate, CreatorTool, Rating, Label.

public const string XmpBasic = "http://ns.adobe.com/xap/1.0/"

Field Value

string

XmpMediaManagement

XMP Media Management (xmpMM): DocumentID, InstanceID, History.

public const string XmpMediaManagement = "http://ns.adobe.com/xap/1.0/mm/"

Field Value

string

XmpRights

XMP Rights Management (xmpRights): Marked, WebStatement, UsageTerms.

public const string XmpRights = "http://ns.adobe.com/xap/1.0/rights/"

Field Value

string