atom feed7 messages in net.java.dev.jai-imageio.interestRE: [JAI-IMAGEIO] Problem rendering T...
FromSent OnAttachments
mja...@union06.deJun 20, 2007 3:34 am 
jai-...@javadesktop.orgJun 20, 2007 4:29 am 
jai-...@javadesktop.orgJun 20, 2007 4:43 am 
Brian BurkhalterJun 20, 2007 11:34 am 
Brian BurkhalterJun 20, 2007 11:51 am 
jai-...@javadesktop.orgJun 21, 2007 6:19 am 
jai-...@javadesktop.orgJun 21, 2007 11:05 am 
Subject:RE: [JAI-IMAGEIO] Problem rendering Tiff with 2 samples per pixel
From:Brian Burkhalter (Bria@Sun.COM)
Date:Jun 20, 2007 11:51:02 am
List:net.java.dev.jai-imageio.interest

Hi Marco,

here is the output from the example program you cited.

kind regards

-- frank

This is a bizarre image. For example:

BitsPerSample = {8, 8} PhotometricInterpretation= {3} (Palette Color) SamplesPerPixel={2} ExtraSamples={999}

This indicates a 2-band image which has indexed color. It could be that one band is supposed to be interpreted as Palette Color and the other band as something else. The ExtraSamples field however does not contain a value which is legal per the TIFF 6.0 specification which allows only 0, 1, or 2.

If you can load the image you might want to extract the first band and create an image using it and an IndexColorModel created from the ColorMap field.

Brian