Charts Are Not Displayed Correctly when Converting Presentation Slides to PNG

Hi.

I am using the latest Aspose.Slides version “22.10.0”.
As you can see from the attached file,

forum.zip (379.8 KB)

There is a difference between the appearance of the PowerPoint file and the thumbnail of the slide created with Aspose.

*The “ppt-thumbnail_diff.png” file is an easy-to-read comparison image.

On the first slide, it seems that the unit part of the graph cannot be judged, and the value is displayed as it is.

On the second slide, the three bars on the right side of the bar graph have what appear to be shadows for some reason.

The source code for thumbnail creation is pasted below, so please check it.

var pptPath = @"C:\forum\file01.pptx";
var thumPath = @"C:\forum\slide{0}.png";

var pres = new Presentation(pptPath);
var width = pres.SlideSize.Size.Width;
var height = pres.SlideSize.Size.Height;

foreach (var slide in pres.Slides)
{
    using (var image = slide.GetThumbnail(new Size((int)width, (int)height)).Clone() as System.Drawing.Image)
    {
        image.Save(string.Format(thumPath, slide.SlideNumber), System.Drawing.Imaging.ImageFormat.Png);
    }
}

@Greeeeen,
Thank you for reporting the issues.

I’ve reproduced the problems with chart data labels and shadows and added the following tickets to our issue-tracking system:

  • SLIDESNET-43582 (Chart data labels are not displayed correctly when converting slides to PNG)
  • SLIDESNET-43583 (Shadows appear on chart when converting slides to PNG)

We apologize for any inconvenience. Our development team will investigate these cases. You will be notified when new releases of Aspose.Slides with fixes are published.

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

  • OS version on which the conversion was performed
  • .NET target platform in your app

We will then also test the fix in an environment similar to yours.

Hi.
Also thank you for confirming the issue and issuing the ticket.

The environment here is as follows.
[OS]
Edition: Windows 10 Pro
Version: 21H2
OS Build: 19044.2251

[.Net]
.NET Framework 4.8

Best regard.

@Greeeeen,
Thank you for the additional information. I’ve forwarded it to our developers.

1 Like

The issues you found earlier (filed as SLIDESNET-43583) have been fixed in Aspose.Slides for .NET 23.1 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.

Hi. I’m glad the issue seems to have been fixed.
I will check with the latest version.
Thank you very much.

@Greeeeen,
Thank you for your feedback.