We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not able to convert PPTX to JPEG Image having animated slides


I am using Aspose.Slides for Java-2.5.0 to convert a PPTX to JPEG image using below code.

try {
// Instantiate a Presentation object that represents a PPT file
PresentationEx pptxPresentation = new PresentationEx(inputFilePath);

// Access the first slide
SlidesEx slds = pptxPresentation.getSlides();
int totalSlides = slds.size();

for (int i = 0; i < totalSlides; i++) {
// Create a full scale image
BufferedImage img = slds.get(i).getThumbnail(1f, 1f);

// Save the image to disk in JPEG format
ImageIO.write(img, “jpeg”, new File(outputFilePath
+ “\thumbnail” + i + “.jpg”));
} catch (Exception e) {

It worked fine for the PPTX file without animation. But when I’ve tried with the file having animation in it. Its’ giving me below error.

com.aspose.slides.pptx.PptxException$PptxReadException: Reading animation group failed.
at com.aspose.slides.pptx.animation.TimeLineEx.load(SourceFile:165)
at com.aspose.slides.pptx.SlideEx.do(SourceFile:84)
at com.aspose.slides.pptx.SlideEx.(SourceFile:76)
at com.aspose.slides.pptx.PresentationEx.do(SourceFile:414)
at com.aspose.slides.pptx.PresentationEx.(SourceFile:1156)
at com.aspose.slides.pptx.PresentationEx.(SourceFile:1140)
at template.SaveAsJPG.main(SaveAsJPG.java:41)
Caused by: java.lang.NumberFormatException: For input string: “”
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at com.aspose.slides.pptx.animation.TimeLineEx.load(SourceFile:129)
… 6 more

I’ve attached the PPTX file as well.

NOTE : PPT to JPEG is working fine with animation as well.

Can you please tell me what is the issue with it ? Am i doing anything wrong ?


Hi TK,

I regret to share that the shared issue with presentation is already under investigation with ID 26537. We will share further information with you once the issue is resolved.

Thanks and Regards,

Hi Mudassir,

Thanks for the reply.

And how much time do you think will it take to resolve the issue. Any rough timeline.

Why am i asking this, Because we are looking forward to use Aspose Slides for one of our project for converting PPT/PPTX to JPEG conversion, IF issue gets resolved in near future.


Hi TK,

Since, the issue specified has already been added. We are trying to provide solution for the issue in upcoming release of Aspose.Slides for Java 2.6.0. However, it is plan but I am unable to share any define estimation at this point of time. I have requested our development team for the status of the issue and will share that with you accordingly once the further updates are shared.

Thanks and Regards,

Thanks a lot Mudassir, for you quick response.

Waiting for your next release 2.6.0 with issue fixed. :slight_smile:


The issues you have found earlier (filed as 26537) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.