Duplicate :
|
|
Duplicate :
|
|
Relates :
|
I am reading the attached image using ImageIO's GIF Reader and GIF Reader is throwing the following exception - Exception in thread "main" javax.imageio.IIOException: Unexpected block type 0! at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:722) at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:794) at javax.imageio.ImageReader.readAll(ImageReader.java:1050) at MetadataViewer.main(MetadataViewer.java:82) The attached image is a GIF image having an embedded color profile. This is reproducible on JDK6/7 on all platforms. Toolkit API is able to read the image properly. Run the attached tests as follows - java KannanImageIOTest <img> java MetadataViewer <img>
|