Skip to main content

[JAI] Tiff Exception

2 replies [Last post]
Anonymous

Hello All,

My application is throwing a nasty exception when it is attempting to
read/write a tiff image.

java.lang.ArrayIndexOutOfBoundsException: 24182
at
com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor.nextState(TIFFF
axCompressor.java:272) at
com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encodeT6(TIFFT6C
ompressor.java:103) at
com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encode(TIFFT6Com
pressor.java:177) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFIma
geWriter.java:1385) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWr
iter.java:2201) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeInsert(TIFFI
mageWriter.java:2329) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeToSequence(T
IFFImageWriter.java:2244)

The tiff image in question has the following IFD information:

Magic: 0x4949 Version: 0x2a
Directory 0: offset 8 (0x8) next 14452 (0x3874)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<1656>
ImageLength (257) LONG (4) 1<718>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 1<278>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 1<14174>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 1: offset 14452 (0x3874) next 32096 (0x7d60)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<856>
ImageLength (257) LONG (4) 1<944>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<14738 29849>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<15111 2246>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 2: offset 32096 (0x7d60) next 47698 (0xba52)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<864>
ImageLength (257) LONG (4) 1<960>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<32382 43523>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<11141 4175>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 3: offset 47698 (0xba52) next 69218 (0x10e62)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<848>
ImageLength (257) LONG (4) 1<1232>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<47984 60458>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<12474 8760>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 4: offset 69218 (0x10e62) next 87338 (0x1552a)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<864>
ImageLength (257) LONG (4) 1<1256>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<69504 80357>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<10853 6980>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 5: offset 87338 (0x1552a) next 117998 (0x1ccee)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<904>
ImageLength (257) LONG (4) 1<2192>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 4<87640 99656 110145 117844>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 4<12016 10489 7699 153>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 6: offset 117998 (0x1ccee) next 144640 (0x23500)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<896>
ImageLength (257) LONG (4) 1<2232>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 4<118300 129402 139938 144291>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 4<11102 10536 4353 349>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 7: offset 144640 (0x23500) next 155170 (0x25e22)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<1896>
ImageLength (257) LONG (4) 1<816>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<144926 153746>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<8820 1423>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

Directory 8: offset 155170 (0x25e22) next 0 (0)
SubFileType (254) LONG (4) 1<2>
OldSubFileType (255) SHORT (3) 1<3>
ImageWidth (256) LONG (4) 1<1896>
ImageLength (257) LONG (4) 1<816>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<155456 158047>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 2<2591 566>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>
PageNumber (297) SHORT (3) 2<9 0>

I can open/view the tiff with windows image viewer.

Any thoughts? Many thanks in advance.

Frank Sharpless
Manager, Application Development
Paperhost.com, Inc.
770.998.9172.611

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sharpless, Frank

I have done some more investigation into this error and it appears only
to occur when I am using Group4 compression.
All other compressions seem to work on this image. Is there possibly a
bug with the TIFFFaxCompressor?

Any feed back would be greatly appreciated.

Thanks,

Frank Sharpless
Manager, Application Development
Paperhost.com, Inc.
770.998.9172.611

-----Original Message-----
From: Sharpless, Frank [mailto:fsharpless@paperhost.com]
Sent: Wednesday, November 09, 2005 4:40 PM
To: interest@jai.dev.java.net
Subject: [JAI] Tiff Exception

Hello All,

My application is throwing a nasty exception when it is attempting to
read/write a tiff image.

java.lang.ArrayIndexOutOfBoundsException: 24182 at
com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor.nextState(TIFFF
axCompressor.java:272) at
com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encodeT6(TIFFT6C
ompressor.java:103) at
com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encode(TIFFT6Com
pressor.java:177) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFIma
geWriter.java:1385) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWr
iter.java:2201) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeInsert(TIFFI
mageWriter.java:2329) at
com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeToSequence(T
IFFImageWriter.java:2244)

The tiff image in question has the following IFD information:

Magic: 0x4949
Version: 0x2a Directory 0: offset 8 (0x8)
next 14452 (0x3874) SubFileType (254) LONG (4) 1<2> OldSubFileType (255)
SHORT (3) 1<3> ImageWidth (256) LONG (4) 1<1656> ImageLength (257) LONG
(4) 1<718> BitsPerSample (258) SHORT (3) 1<1> Compression (259) SHORT
(3) 1<4> Photometric (262) SHORT (3) 1<0> FillOrder (266) SHORT (3) 1<1>
DocumentName (269) ASCII (2) 7 ImageDescription (270) ASCII
(2) 13 StripOffsets (273) LONG (4) 1<278>
SamplesPerPixel (277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 1<14174> XResolution (282) RATIONAL (5)
1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options (293) LONG
(4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3)
2<9 0>

Directory 1: offset 14452 (0x3874) next 32096 (0x7d60) SubFileType (254)
LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG
(4) 1<856> ImageLength (257) LONG (4) 1<944> BitsPerSample (258) SHORT
(3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3)
1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<14738 29849> SamplesPerPixel (277) SHORT
(3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
(4) 2<15111 2246> XResolution (282) RATIONAL (5) 1<200> YResolution
(283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

Directory 2: offset 32096 (0x7d60) next 47698 (0xba52) SubFileType (254)
LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG
(4) 1<864> ImageLength (257) LONG (4) 1<960> BitsPerSample (258) SHORT
(3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3)
1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<32382 43523> SamplesPerPixel (277) SHORT
(3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
(4) 2<11141 4175> XResolution (282) RATIONAL (5) 1<200> YResolution
(283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

Directory 3: offset 47698 (0xba52) next 69218 (0x10e62) SubFileType
(254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
LONG (4) 1<848> ImageLength (257) LONG (4) 1<1232> BitsPerSample (258)
SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
(3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<47984 60458> SamplesPerPixel (277) SHORT
(3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
(4) 2<12474 8760> XResolution (282) RATIONAL (5) 1<200> YResolution
(283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

Directory 4: offset 69218 (0x10e62) next 87338 (0x1552a) SubFileType
(254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
LONG (4) 1<864> ImageLength (257) LONG (4) 1<1256> BitsPerSample (258)
SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
(3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<69504 80357> SamplesPerPixel (277) SHORT
(3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
(4) 2<10853 6980> XResolution (282) RATIONAL (5) 1<200> YResolution
(283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

Directory 5: offset 87338 (0x1552a) next 117998 (0x1ccee) SubFileType
(254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
LONG (4) 1<904> ImageLength (257) LONG (4) 1<2192> BitsPerSample (258)
SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
(3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 4<87640 99656 110145 117844> SamplesPerPixel
(277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts
(279) LONG (4) 4<12016 10489 7699 153> XResolution (282) RATIONAL (5)
1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options (293) LONG
(4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3)
2<9 0>

Directory 6: offset 117998 (0x1ccee) next 144640 (0x23500) SubFileType
(254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
LONG (4) 1<896> ImageLength (257) LONG (4) 1<2232> BitsPerSample (258)
SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
(3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 4<118300 129402 139938 144291>
SamplesPerPixel (277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718>
StripByteCounts (279) LONG (4) 4<11102 10536 4353 349> XResolution (282)
RATIONAL (5) 1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options
(293) LONG (4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297)
SHORT (3) 2<9 0>

Directory 7: offset 144640 (0x23500) next 155170 (0x25e22) SubFileType
(254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
LONG (4) 1<1896> ImageLength (257) LONG (4) 1<816> BitsPerSample (258)
SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
(3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
7 ImageDescription (270) ASCII (2) 13
StripOffsets (273) LONG (4) 2<144926 153746> SamplesPerPixel (277) SHORT
(3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
(4) 2<8820 1423> XResolution (282) RATIONAL (5) 1<200> YResolution (283)
RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0> ResolutionUnit
(296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

Directory 8: offset 155170 (0x25e22) next 0 (0) SubFileType (254) LONG
(4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG (4)
1<1896> ImageLength (257) LONG (4) 1<816> BitsPerSample (258) SHORT (3)
1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2) 7
ImageDescription (270) ASCII (2) 13 StripOffsets (273)
LONG (4) 2<155456 158047> SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG (4) 2<2591
566> XResolution (282) RATIONAL (5) 1<200> YResolution (283) RATIONAL
(5) 1<200> Group4Options (293) LONG (4) 1<0> ResolutionUnit (296) SHORT
(3) 1<2> PageNumber (297) SHORT (3) 2<9 0>

I can open/view the tiff with windows image viewer.

Any thoughts? Many thanks in advance.

Frank Sharpless
Manager, Application Development
Paperhost.com, Inc.
770.998.9172.611

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Brian Burkhalter

Could be. Could you supply us the problem image? You could e-mail it to me
directly.

Thanks,

Brian

On Thu, 10 Nov 2005, Sharpless, Frank wrote:

>
>
> I have done some more investigation into this error and it appears only
> to occur when I am using Group4 compression.
> All other compressions seem to work on this image. Is there possibly a
> bug with the TIFFFaxCompressor?
>
> Any feed back would be greatly appreciated.
>
> Thanks,
>
> Frank Sharpless
> Manager, Application Development
> Paperhost.com, Inc.
> 770.998.9172.611
>
>
> -----Original Message-----
> From: Sharpless, Frank [mailto:fsharpless@paperhost.com]
> Sent: Wednesday, November 09, 2005 4:40 PM
> To: interest@jai.dev.java.net
> Subject: [JAI] Tiff Exception
>
> Hello All,
>
> My application is throwing a nasty exception when it is attempting to
> read/write a tiff image.
>
> java.lang.ArrayIndexOutOfBoundsException: 24182 at
> com.sun.media.imageioimpl.plugins.tiff.TIFFFaxCompressor.nextState(TIFFF
> axCompressor.java:272) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encodeT6(TIFFT6C
> ompressor.java:103) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFT6Compressor.encode(TIFFT6Com
> pressor.java:177) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFIma
> geWriter.java:1385) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWr
> iter.java:2201) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeInsert(TIFFI
> mageWriter.java:2329) at
> com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeToSequence(T
> IFFImageWriter.java:2244)
>
> The tiff image in question has the following IFD information:
>
> Magic: 0x4949
Version: 0x2a Directory 0: offset 8 (0x8)
> next 14452 (0x3874) SubFileType (254) LONG (4) 1<2> OldSubFileType (255)
> SHORT (3) 1<3> ImageWidth (256) LONG (4) 1<1656> ImageLength (257) LONG
> (4) 1<718> BitsPerSample (258) SHORT (3) 1<1> Compression (259) SHORT
> (3) 1<4> Photometric (262) SHORT (3) 1<0> FillOrder (266) SHORT (3) 1<1>
> DocumentName (269) ASCII (2) 7 ImageDescription (270) ASCII
> (2) 13 StripOffsets (273) LONG (4) 1<278>
> SamplesPerPixel (277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718>
> StripByteCounts (279) LONG (4) 1<14174> XResolution (282) RATIONAL (5)
> 1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options (293) LONG
> (4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3)
> 2<9 0>
>
> Directory 1: offset 14452 (0x3874) next 32096 (0x7d60) SubFileType (254)
> LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG
> (4) 1<856> ImageLength (257) LONG (4) 1<944> BitsPerSample (258) SHORT
> (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3)
> 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 2<14738 29849> SamplesPerPixel (277) SHORT
> (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
> (4) 2<15111 2246> XResolution (282) RATIONAL (5) 1<200> YResolution
> (283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> Directory 2: offset 32096 (0x7d60) next 47698 (0xba52) SubFileType (254)
> LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG
> (4) 1<864> ImageLength (257) LONG (4) 1<960> BitsPerSample (258) SHORT
> (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3)
> 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 2<32382 43523> SamplesPerPixel (277) SHORT
> (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
> (4) 2<11141 4175> XResolution (282) RATIONAL (5) 1<200> YResolution
> (283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> Directory 3: offset 47698 (0xba52) next 69218 (0x10e62) SubFileType
> (254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
> LONG (4) 1<848> ImageLength (257) LONG (4) 1<1232> BitsPerSample (258)
> SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
> (3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 2<47984 60458> SamplesPerPixel (277) SHORT
> (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
> (4) 2<12474 8760> XResolution (282) RATIONAL (5) 1<200> YResolution
> (283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> Directory 4: offset 69218 (0x10e62) next 87338 (0x1552a) SubFileType
> (254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
> LONG (4) 1<864> ImageLength (257) LONG (4) 1<1256> BitsPerSample (258)
> SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
> (3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 2<69504 80357> SamplesPerPixel (277) SHORT
> (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
> (4) 2<10853 6980> XResolution (282) RATIONAL (5) 1<200> YResolution
> (283) RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0>
> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> Directory 5: offset 87338 (0x1552a) next 117998 (0x1ccee) SubFileType
> (254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
> LONG (4) 1<904> ImageLength (257) LONG (4) 1<2192> BitsPerSample (258)
> SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
> (3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 4<87640 99656 110145 117844> SamplesPerPixel
> (277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts
> (279) LONG (4) 4<12016 10489 7699 153> XResolution (282) RATIONAL (5)
> 1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options (293) LONG
> (4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297) SHORT (3)
> 2<9 0>
>
> Directory 6: offset 117998 (0x1ccee) next 144640 (0x23500) SubFileType
> (254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
> LONG (4) 1<896> ImageLength (257) LONG (4) 1<2232> BitsPerSample (258)
> SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
> (3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 4<118300 129402 139938 144291>
> SamplesPerPixel (277) SHORT (3) 1<1> RowsPerStrip (278) LONG (4) 1<718>
> StripByteCounts (279) LONG (4) 4<11102 10536 4353 349> XResolution (282)
> RATIONAL (5) 1<200> YResolution (283) RATIONAL (5) 1<200> Group4Options
> (293) LONG (4) 1<0> ResolutionUnit (296) SHORT (3) 1<2> PageNumber (297)
> SHORT (3) 2<9 0>
>
> Directory 7: offset 144640 (0x23500) next 155170 (0x25e22) SubFileType
> (254) LONG (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256)
> LONG (4) 1<1896> ImageLength (257) LONG (4) 1<816> BitsPerSample (258)
> SHORT (3) 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT
> (3) 1<0> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2)
> 7 ImageDescription (270) ASCII (2) 13
> StripOffsets (273) LONG (4) 2<144926 153746> SamplesPerPixel (277) SHORT
> (3) 1<1> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG
> (4) 2<8820 1423> XResolution (282) RATIONAL (5) 1<200> YResolution (283)
> RATIONAL (5) 1<200> Group4Options (293) LONG (4) 1<0> ResolutionUnit
> (296) SHORT (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> Directory 8: offset 155170 (0x25e22) next 0 (0) SubFileType (254) LONG
> (4) 1<2> OldSubFileType (255) SHORT (3) 1<3> ImageWidth (256) LONG (4)
> 1<1896> ImageLength (257) LONG (4) 1<816> BitsPerSample (258) SHORT (3)
> 1<1> Compression (259) SHORT (3) 1<4> Photometric (262) SHORT (3) 1<0>
> FillOrder (266) SHORT (3) 1<1> DocumentName (269) ASCII (2) 7
> ImageDescription (270) ASCII (2) 13 StripOffsets (273)
> LONG (4) 2<155456 158047> SamplesPerPixel (277) SHORT (3) 1<1>
> RowsPerStrip (278) LONG (4) 1<718> StripByteCounts (279) LONG (4) 2<2591
> 566> XResolution (282) RATIONAL (5) 1<200> YResolution (283) RATIONAL
> (5) 1<200> Group4Options (293) LONG (4) 1<0> ResolutionUnit (296) SHORT
> (3) 1<2> PageNumber (297) SHORT (3) 2<9 0>
>
> I can open/view the tiff with windows image viewer.
>
> Any thoughts? Many thanks in advance.
>
>
> Frank Sharpless
> Manager, Application Development
> Paperhost.com, Inc.
> 770.998.9172.611
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
> For additional commands, e-mail: interest-help@jai.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
> For additional commands, e-mail: interest-help@jai.dev.java.net
>
>

----------------
Brian Burkhalter
Java Multimedia, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net