Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5021785
Votes 0
Synopsis TIFF reader should be robust to datatype errors in FillOrder tag
Category jai:codec_sample
Reported Against 1.1.2
Release Fixed
State 7-Fix in Progress, bug
Priority: 4-Low
Related Bugs 6175911
Submit Date 27-MAR-2004
Description
Problem as reported by customer, <  xxxxx@xxxxx  -deposit.net>

"Some of the TIFF creation methods, say using tools like IrfanView
produce images (with some known depth, compression, ...) that JAI
might not recognize. For instance, I have this image which is
viewable in most viewers, IrfanView, SDTImage etc. but JAI throws an exception for this image.

Interestingly tiffinfo says TIFFReadDirectory: Warning, E002004C000001B0948501I0000017D20031220T091538DRF.tif: wrong data type 4 for "FillOrder"; tag ignored.
TIFF Directory at offset 0x1bf7
 Image Width: 624 Image Length: 288
 Resolution: 100, 100 pixels/inch
 Bits/Sample: 1
 Compression Scheme: PackBits
 Photometric Interpretation: min-is-white
 Samples/Pixel: 1
 Rows/Strip: 105
 Planar Configuration: single image plane
 Software: Created by fCoder Graphic Processor"

The image causing the Exception is attached, and is viewable by using other image display programs like xv. Thus JAI should also be able to ignore the incorrect data type for the FillOrder tag.
Work Around
  xxxxx@xxxxx   2004-04-06

Use JAI Image I/O Tools which is able correctly to load the image.
Evaluation
  xxxxx@xxxxx   2004-04-06

In the customer-supplied test image the FillOrder field is of type LONG instead of the expected SHORT so when retrieving the field value as an int a ClassCastException results.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang