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());