paraphernalia.signature module

Sign and tag images.

class XMP(path)[source]

Context manager for working with XMP metadata on files, with convenience accessors for some Dublin Core fields.

For DC/XMP interactions see https://www.exiv2.org/tags-xmp-dc.html

Example:

>>> with XMP("test.png") as xmp:
...     xmp.title = "Mona Lisa"
...     xmp.creator = "Leonardo"
>>> with XMP("test.png") as xmp:
...     print(xmp.creator)
Leonardo

Create a new Signature for a file.

Parameters

path (str) – The file with which to work

Raises

ValueError – if the path does not exist

Return type

None

clear()[source]

Clear all metadata.

Return type

None

property creator: str

The creator of this object.

property creators: List[str]

The creator

property description: str

The description

property rights: str

The rights

property tags: List[str]

The subject

property title: str

The title