use of it.geosolutions.imageio.plugins.exif.TIFFTagWrapper in project imageio-ext by geosolutions-it.
the class JPEGWriterTest method getDefaultInstance.
public static EXIFMetadata getDefaultInstance() {
List<TIFFTagWrapper> baselineTiffTags = new ArrayList<TIFFTagWrapper>(2);
List<TIFFTagWrapper> exifTags = new ArrayList<TIFFTagWrapper>(1);
// Make sure to set them in proper order
TIFFTagWrapper copyrightTag = EXIFUtilities.createTag(EXIFTags.COPYRIGHT);
TIFFTagWrapper exifPointerTag = EXIFUtilities.createTag(EXIFTags.EXIF_IFD_POINTER);
baselineTiffTags.add(copyrightTag);
baselineTiffTags.add(exifPointerTag);
TIFFTagWrapper userCommentTag = EXIFUtilities.createTag(EXIFTags.USER_COMMENT);
exifTags.add(userCommentTag);
EXIFMetadata exif = new EXIFMetadata(baselineTiffTags, exifTags);
return exif;
}
Aggregations