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

Free Support Forum - aspose.com

Thumbnails Are Not Displayed Correctly when There Is a Chart

Hi. I am using Aspose.Slides (ver.22.7.0).
When I create a thumbnail of a slide with a graph with the code below, the contents of the graph are not displayed correctly as shown in the attachment.

var pres = new Presentation(pptPath);
var slide1 = pres.Slides[0];
var width = pres.SlideSize.Size.Width;
var height = pres.SlideSize.Size.Height;

using (var image = slide1.GetThumbnail(new Size((int)width, (int)height)).Clone() as System.Drawing.Image)
image.Save(thumPath, System.Drawing.Imaging.ImageFormat.Png);

Is there a solution to this?

Best regard.

ppt.zip (90.2 KB)

Thank you for reporting the issue. I’ve reproduced the problem with the slide thumbnail with the chart and added a ticket with ID SLIDESNET-43368 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when the issue is resolved.

It would be great if you could share the following additional information:

  • OS version where the code was executed
  • .NET target platform in your app

We will then also test a solution in an environment similar to yours.

Thank you for confirming the issue and issuing the ticket.

The environment here is as follows.
Edition: Windows 10 Pro
Version: 20H2
OS Build: 19042.1526

.NET Framework 4.8

Best regard.

Thank you for the additional information. I forwarded it to our developers.

1 Like