[
https://issues.apache.org/jira/browse/TIKA-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007499#comment-13007499
]
Nick Burch commented on TIKA-619:
---------------------------------
Can you knock up a little (non Tika) class that uses the Java ImageIO to try to
read the width and height? If so, I'd suggest you then go and open a bug with
Oracle about the file, and include the file + the very small testcase that
shows it.
> Error parsing GIF
> -----------------
>
> Key: TIKA-619
> URL: https://issues.apache.org/jira/browse/TIKA-619
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.0
> Reporter: Erik Hetzner
> Priority: Minor
>
> I am getting an exception parsing the following GIF file, which opens OK in
> firefox, etc. Although since this is a problem in Sun/Oracle code, I would
> not expect it to be fixed anytime soon!
> {noformat}
> $ java -jar tika-app/target/tika-app-1.0-SNAPSHOT.jar
> http://sites.google.com/site/keepaesopen/_/rsrc/1271597999559/system/app/images/icon_gadget_tools_dark.gif
> Exception in thread "main" org.apache.tika.exception.TikaException: image/gif
> parse error
> at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:91)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
> at
> org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
> at
> org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
> at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:107)
> at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:302)
> at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:91)
> Caused by: 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.getWidth(GIFImageReader.java:167)
> at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:75)
> ... 6 more
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira