GroupDocs.Metadata for Java allows managing XMP metadata in TIFF images. For more details please refer to the following guide: Working with XMP Metadata.
Working with EXIF metadata
The GroupDocs.Metadata API supports handling EXIF metadata in TIFF images. Please find appropriate code samples in the Working with EXIF Metadata section.
The code sample below shows how to update EXIF properties in a TIFF image.
try(Metadatametadata=newMetadata(Constants.TiffWithExif)){IExifroot=(IExif)metadata.getRootPackage();// Set the EXIF package if it's missing
if(root.getExifPackage()==null){root.setExifPackage(newExifPackage());}root.getExifPackage().setCopyright("Copyright (C) 2011-2026 GroupDocs. All Rights Reserved.");root.getExifPackage().setImageDescription("test TIFF image");root.getExifPackage().setSoftware("GroupDocs.Metadata");root.getExifPackage().setArtist("GroupDocs");// ...
root.getExifPackage().getExifIfdPackage().setBodySerialNumber("test");root.getExifPackage().getExifIfdPackage().setCameraOwnerName("GroupDocs");root.getExifPackage().getExifIfdPackage().setUserComment("test comment");// ...
metadata.save(Constants.OutputTiff);}
Working with IPTC metadata
GroupDocs.Metadata for Java is also able to work with IPTC metadata in TIFF images. Please find more information in the Working with IPTC IIM Metadata section.
The code sample below shows how to update IPTC properties in a TIFF image. If the image has no IPTC package or the required records yet, they are created first.