Search in sources :

Example 1 with TIFFTagWrapper

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;
}
Also used : EXIFMetadata(it.geosolutions.imageio.plugins.exif.EXIFMetadata) ArrayList(java.util.ArrayList) TIFFTagWrapper(it.geosolutions.imageio.plugins.exif.TIFFTagWrapper)

Aggregations

EXIFMetadata (it.geosolutions.imageio.plugins.exif.EXIFMetadata)1 TIFFTagWrapper (it.geosolutions.imageio.plugins.exif.TIFFTagWrapper)1 ArrayList (java.util.ArrayList)1