Icon Is Not Rendered Properly When Converting It to an Image in C#

Hi Team,

I have a PPTX containing one slide having two icons (refer to sample.zip to get the sample.pptx). I am using Aspose Slides for .NET (version 25.3) to get images of these shapes using following code:

using Aspose.Slides;
using Aspose.Slides.Export;
using System.Drawing.Imaging;

class Program
{
    static void Main(string[] args)
    {
        try
        {
            // Load the presentation
            using (Presentation presentation = new Presentation("sample.pptx"))
            {
               int ix = 0;
               foreach (var curShape in presentation.Slides[0].Shapes)
               {
                    if (curShape is GroupShape) {
                        GroupShape groupShape = curShape as GroupShape;
                        var curImage = groupShape.GetThumbnail(ShapeThumbnailBounds.Slide, (float)2, (float)2);
                        curImage.Save($"C:\\Users\\dummy\\Downloads\\shape{ix}.png", System.Drawing.Imaging.ImageFormat.Png);
                        ix++;
                    }
               }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine($"An error occurred: {ex.Message}");
        }
    }
}

One image comes out correctly, but other image is not same as the one contained in the PPTX slide. Can you help me understand why this icon image is not generated correctly ? Thank you for helping.

Regards,
Bhavana
shape0.png (17.0 KB)

shape1.png (17.9 KB)
sample.zip (45.8 KB)

@bhav,
Thank you for reporting on the issue. I’ve reproduced the problem with the group shape when converting it to an image.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44928

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi Andrey,

Thank you for acknowledging the issue. I have another slide sample which is showing similar issue. I have attached the sample PPT and its output image in the attached zip. Kindly add this sample too to the test set for this issue and let us know if it is the same issue.
sample2.zip (26.2 KB)

Thank you,
@bhav

@bhav,
Thank you for the sample presentation file. I’ve reproduced a similar issue when converting the slide to an image. I’ve attached the sample file to the ticket SLIDESNET-44928.

Hi,

I have created a paid ticket for this issue.

Regards,
bhav

@bhav,
Thank you for the information. My colleagues from Paid Support will work on your ticket.

The issues you found earlier (filed as SLIDESNET-44928) have been resolved in Aspose.Slides for .NET 25.5 (ZIP, MSI, NuGet, Cross-platform).
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.