Package org.apache.sanselan.formats.tiff.write

Examples of org.apache.sanselan.formats.tiff.write.TiffOutputSet.findField()


      }

      /* iterate all fields to save and store them into the TiffOutputSet */
      for (TagInfo field : saveMap.keySet()) {
        /* remove the field if it already exists */
        TiffOutputField metadataField = exifTags.findField(field);
        if (metadataField != null) {
          exifTags.removeField(field);
        }

        TiffOutputField outputField = new TiffOutputField(field.tag,
View Full Code Here


        // Example of how to remove a single tag/field.
        //
        // Note that this approach is crude: Exif data is organized in
        // directories.  The same tag/field may appear in more than one
        // directory.
        TiffOutputField aperture = outputSet
            .findField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        if (null != aperture)
        {
          // set contains aperture tag/field.
          outputSet
View Full Code Here

        // Example of how to remove a single tag/field.
        //
        // Note that this approach is crude: Exif data is organized in
        // directories.  The same tag/field may appear in more than one
        // directory.
        TiffOutputField aperture = outputSet
            .findField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        if (null != aperture)
        {
          // set contains aperture tag/field.
          outputSet
View Full Code Here

        IImageMetadata metaData = Sanselan.getMetadata(f);
        JpegImageMetadata jMetaData = (JpegImageMetadata) metaData;
        assert (jMetaData != null);
        TiffImageMetadata exif = jMetaData.getExif();
        TiffOutputSet outputSet = exif.getOutputSet();
        TiffOutputField field = outputSet.findField(TiffConstants.EXIF_TAG_PROCESSING_SOFTWARE);
        if (null != field) {
      outputSet.removeField(TiffConstants.EXIF_TAG_PROCESSING_SOFTWARE);
      String fieldString = "Edited by DeExifier. andreas.reichart@gmail.com";
      TiffOutputField newField = new TiffOutputField(ExifTagConstants.EXIF_TAG_PROCESSING_SOFTWARE,
        TiffFieldTypeConstants.FIELD_TYPE_ASCII, fieldString.length(), fieldString.getBytes());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.