Failure to load gif image due to incorrect block size


#1

On calling Image.load on the attached gif, I get the following stack trace:

Exception in thread "main" class com.aspose.imaging.coreexceptions.imageformats.GifImageException: Block size is incorrect for gif application extension block.
com.aspose.imaging.internal.bF.a.load(Unknown Source)
com.aspose.imaging.internal.eC.s.load(Unknown Source)
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.Image.load(Unknown Source)

Here is sample code that reproduces:

import com.aspose.imaging.Image;

public class Test {
    public static void main(String[] args) {
        Image.load("/path/to/image.gif");
    }
}

I am able to open the image in other programs and java ImageIO also can open it without problems. Has anyone run into this issue before and if so, suggestions on how to get around it?

Thanks

image.gif (12.3 KB)


#2

@cemeyer2,

I have worked with source file and have been able to observe issue. A ticket with ID IMAGINGJAVA-1406 has been created in our issue tracking system to further investigate to resolve the issue. We will share good news with you soon.