Hello Remi,

based on your second question I assume you have managed to resolve this
problem yourself?

br,
Benedikt

2015-04-22 17:32 GMT+02:00 Remi Malessa <[email protected]>:

> 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]
>
>


-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Reply via email to