AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2002.10.31 09:59 "Need a help about TIFF Class F type files resolution...", by Lyubomir Pashov
2002.10.31 13:48 "RE: Need a help about TIFF Class F type files resolution...", by Rob Abbe
2002.10.31 14:57 "Re: Need a help about TIFF Class F type files resolution...", by Steven Luke

2002.10.31 14:57 "Re: Need a help about TIFF Class F type files resolution...", by Steven Luke

Hello Mr. Pashov,

ImageJ is a Java program that works with Tiffs very well, although it works with

images, not faxes, I would imagine the process would be similar.

ImageJ's source can be found at: http://rsb.info.nih.gov/ij/developer/source/index.html Browse to the ij.io.TiffDecoder and TiffEncoder classes and see how ImageJ reads and writes the

X_RESOLUTION, Y_RESOLUTION and RESOLUTION_UNIT (tag numbers 282, 283, and 296 respectively). I think this should be a good way of reading and writing TIFFs in Java. You would just have to make the changes that would be specific for your application.

I hope you find this useful

Steven Luke

(I have nothing to do with ImageJ except being a happy user who also believes it is a great tool for learning imaging in Java)

Lyubomir Pashov wrote:
--------------------------------

I have not already understood if it is possible to adjust the TIFF (Class F) file vertical and horizontal resolutions, using Java.

For my facsimile's application, I need to set the vertical and horizontal resolution respectively to 98 dpi and 204 dpi. I don't need to scale the image -but only to adjust the needed (which exactly?) TIFF Class F tags, that set the resolution.

So, could you tell me, please, is it possible, using Java (maybe JAI) or not?

And any comments about it will be appreciated.

Tanks,
Lyubomir.

---------------------------------------

--

Steven J. Luke
Kimmel Cancer Center Bioimaging Facility
Thomas Jefferson University
Philadelphia, Pennsylvania