incubator-sanselan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holger Veltrup (JIRA)" <>
Subject [jira] Created: (SANSELAN-24) ArrayIndexOutOfBoundsException with GIF
Date Mon, 29 Jun 2009 06:22:47 GMT
ArrayIndexOutOfBoundsException with GIF

                 Key: SANSELAN-24
             Project: Sanselan
          Issue Type: Bug
            Reporter: Holger Veltrup

I try to get a BufferedImage:

import java.awt.image.BufferedImage;
import org.apache.sanselan.Sanselan;
public class BufferedImageTest {
    public static void main(String[] args) throws Exception {
        BufferedImage img = Sanselan.getBufferedImage(new File(args[0]));

This throw a ArrayIndexOutOfBoundsException  if I use a special gif (test.gif is attached)
This GIF was created by PowerPoint

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 96000
   at org.apache.sanselan.formats.gif.GifImageParser.getBufferedImage(
   at org.apache.sanselan.Sanselan.getBufferedImage(
   at org.apache.sanselan.Sanselan.getBufferedImage(
   at BufferedImageTest.main(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message