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

Free Support Forum - aspose.com

Slide (PPTX) File has Top Border Line

we are using the below sample code to generate a thumbnail image for a pptx file.

private byte[] GeneratePresentationThumbnail(MemoryStream presentationStream, string fileName)
byte[] bytes = null;

Aspose.Slides.License license = new Aspose.Slides.License();

System.Drawing.Image image = null;
Presentation pres = new Presentation(presentationStream);

ISlide oSlide = pres.Slides[0];
//Getting the thumbnail image of the slide of a specified size
image = oSlide.GetThumbnail(0.5480F, 0.470F);

MemoryStream outStream = new MemoryStream();
image.Save(outStream, System.Drawing.Imaging.ImageFormat.Png);

bytes = outStream.GetBuffer();
catch (Exception ex)
return bytes;

And able to generate the thumbnail successfully, but if the pptx slide has white/light colors then it has a border line on the top of the thumbnail image and not on other sides.

Please find the attached pptx and the thumbnail image for your reference.

Hi Arul,

Thanks for inquiring Aspose.Slides.

I have worked with the presentation file shared by you and have been able to observe the issue specified in generated thumbnail for set zoom level. An issue with ID SLIDESNET-35374 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

For the time being, I suggest you to please use the following statement to serve the purpose.

image = oSlide.GetThumbnail(1.0F, 1.0F);

We are sorry for your inconvenience,

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

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.