Unsupported Image formats



I am testing the ability to replace images in a presentation. The test program runs perfectly with .jpg images, however produces the following exception when trying to use .bmp and .gif

Exception in thread “main” com.aspose.powerpoint.PptReadException: Unsupported image format.
at com.aspose.powerpoint.Picture.(SourceFile:87)

In the code (Java), I am producing a new FileInputStream to the image file, casting it to an InputStream and passing this to the Picture constructor.

Is there another way to do this, something I am missing, or are these image formats just not supported? If they are unsupported, what is the time table on their addition? I ask because this is a user requirement of our project and will need to be able to utilized .bmp, .jpg, and .gif images in the final product.

Thank you.


We had a problems with JAI library and temporary disabled it.

Native ppt image formats are PNG and JPG. You can convert

your image with any extarnal library (for example JAI) to png or jpg

format and insert it to a presentation.

We will return JAI back soon so all formats will work again.