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

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


                // Option 1: brute force
                // Note that this approach is crude: Exif data is organized in
                // directories. The same tag/field may appear in more than one
                // directory, and have different meanings in each.
                outputSet.removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);

                // Option 2: precision
                // We know the exact directory the tag should appear in, in this
                // case the "exif" directory.
                // One complicating factor is that in some cases, manufacturers
View Full Code Here


      /* 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,
            field, TiffFieldTypeConstants.FIELD_TYPE_ASCII, saveMap
                .get(field).length(), saveMap.get(field)
View Full Code Here

        TiffOutputField aperture = outputSet
            .findField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        if (null != aperture)
        {
          // set contains aperture tag/field.
          outputSet
              .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        }
      }

      {
View Full Code Here

        // Option 1: brute force
        // Note that this approach is crude: Exif data is organized in
        // directories. The same tag/field may appear in more than one
        // directory, and have different meanings in each.
        outputSet.removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);

        // Option 2: precision
        // We know the exact directory the tag should appear in, in this
        // case the "exif" directory.
        // One complicating factor is that in some cases, manufacturers
View Full Code Here

        TiffOutputField aperture = outputSet
            .findField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        if (null != aperture)
        {
          // set contains aperture tag/field.
          outputSet
              .removeField(TiffConstants.EXIF_TAG_APERTURE_VALUE);
        }
      }

      {
View Full Code Here

        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());
      TiffOutputDirectory outDirectory = outputSet.getOrCreateExifDirectory();
      outDirectory.add(newField);
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.