|


|
|
|
Hi there,
The spring of 97 I tried to get JavaSoft to add handling for TIFF to the JDK. I even begged and
pleaded with their developers at JavaOne, but was turned down. So I wrote my own TIFF library. It currently handles
raw, packbits, G3, G4 and JPEG decompression. Since it is pure, my library worked perfectly when I copied it over
to a HPUX 10.10 unix server. It has been tested with the following VM's Netscape 3-4.51, MSIE 3.0&4.0, Symantec
Cafe 1.02-3.0c, and HP's JDK for 1.02 on HPUX 10.10 and JavaSoft's JDK 1.02, 1.1.3, 1.1.6, and 1.2.2. Would
you believe it only took 125ms to decompress a TIFF/G4 1200*576 image using the JDK 1.2beta4? The library is available
under GNU Library licensing. I welcome comments and would be happy to make any improvements.
Finally JavaSoft has added TIFF handling with their Advanced Imaging API -
http://www.javasoft.com/products/java-media/jai/index.html
Enjoy,
Liz
NOTE: This library decompresses the file to a java.awt.Image,
which requires a byte
array for all the pixels. Java limits the amount of memory you can play in to 8mb.
Thus you will run out of memory on larger than letter size images with this library.
Run the Applet example
Download the TIFF library, documentation and examples
If you find any bugs (I tried to catch them all), problems or have ideas to make it better, please let me know
and I will be happy to change/fix them. email: tiff@lizardworks.com
|