TiffAsciiTag class

TiffAsciiTag class

Represents a TIFF ASCII tag.

The TiffAsciiTag type exposes the following members:

Constructors

Constructor Description
init Initializes a new TiffAsciiTag instance.

Properties

Property Description
tag_value The tag value.
descriptor The descriptor associated with the metadata property. (inherited from MetadataProperty)
interpreted_value The interpreted property value, if available. (inherited from MetadataProperty)
name The property name. (inherited from MetadataProperty)
tag_id The tag id. (inherited from TiffTag)
tag_type The type of the tag. (inherited from TiffTag)
tags The collection of tags associated with the property. (inherited from MetadataProperty)
value The property value. (inherited from MetadataProperty)

Example

from groupdocs.metadata import Metadata
from groupdocs.metadata.formats.image import TiffAsciiTag, TiffTagID
from groupdocs.metadata.standards.exif import ExifPackage

def set_custom_exif_tag():
    with Metadata("exif.tiff") as metadata:
        root = metadata.get_root_package()
        if getattr(root, "exif_package", None) is None:
            root.exif_package = ExifPackage()

        root.exif_package.set(TiffAsciiTag(TiffTagID.ARTIST, "test artist"))
        root.exif_package.set(TiffAsciiTag(TiffTagID.SOFTWARE, "GroupDocs.Metadata"))

        metadata.save("output.tiff")

See Also