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

Free Support Forum - aspose.com

GetThumbNail() + Aspose.Slides.Pptx


I am getting the following error when executing Bitmap img = slide.GetThumbnail(400 , 300);

[System.ArgumentException] = {"Parameter is not valid."}

StackTrace = " at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)\r\n at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)\r\n at Aspose.Slides.Pptx.SlideEx.GetThumbnail(Single scaleX, Single scaleY)\r\n at PPT2SWF.PPT2SWF.Conv...

Please let me know where i am going wrong.

N.B: I am using Aspose.Slides for .Net version (C# application)

Thanks and regards


Hi Parthiban,

As this particular issue is related to Aspose.Slides, I’ll move this thread to the related forum, so that the concerned team would be able to help you out properly.

We’re sorry for the inconvenience.

Hello Parthiban,

Thanks for your keen interest in Aspose.Slides.

According to your code snippet, slide.getThumbnail(400,300) means that are trying to create an image that is scaled to 400 times in X-direction and 300 times in Y-direction. The Created image will have resolution about 720*400 x 576*300. You need a memory space of more than 100+ GB. So, please try using scaling factors that are well in range, like scale factor up to 10 or more. Please use following code snippet.


Thanks and Regards,