TiffAsciiTag class
Leave feedback
On this page
Represents a TIFF ASCII tag.
The TiffAsciiTag type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new TiffAsciiTag instance. |
| 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) |
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")
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.