Hi there,

I am starting my work with Sanselan. I am trying to remove a Tag from a TIFF file.
I managed to find the Tag and probably remove it too. Here's the code:

IImageMetadata tMetadata = Sanselan.getMetadata(tInputFile);
TiffImageMetadata tiffMetadata = (TiffImageMetadata) tMetadata;
outputSet = tiffMetadata.getOutputSet();
TiffOutputDirectory exifDirectory = outputSet.getExifDirectory();
exifDirectory.removeField(TiffConstants.EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT);

...but now, I can't make it to save it to the system. I am trying something like this:

TiffImageWriterLossless writerLossLess = new TiffImageWriterLossless(imageBytes);
 writerLossLess.write(new FileOutputStream(toutputFile), outputSet);

...but I don't know where to get the data for the "imagesBytes".

Would much appreciate a hint.

Thanks

Remi

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to