Picture Fill Is Not Considered When Exporting a Slide to PNG in C#

In a C# environment, using the latest version of Aspose.Slides package to this day (25.12.0),
I have this presentation that contains only one slide:
Export-PNG-Color-NOK.zip (795,6 Ko)

The slide only contains one picture. The transparency of this picture is set to 93% and a solid fill is configured (a green color in this case).

When I export the slide to a PNG file using Aspose, the image created does not contain the picture fill color I had in the slide.
The PNG generated shows the picture with the transparency, but the color is not visible, as if the fill color was not considered when saving the slide as image.

This is the slide I am trying to export:
image.jpg (39,1 Ko)

This is the result of the export in PNG:
Export-PNG-Color-NOK.png (42,8 Ko)

The code is based on Aspose documentation:

LoadOptions loadOptions = new LoadOptions()
{
    BlobManagementOptions = { PresentationLockingBehavior = PresentationLockingBehavior.KeepLocked }    
};
using (var presentation = new Aspose.Slides.Presentation(pptxPath, loadOptions))
{
    using (IImage image = presentation.Slides[slideIndex - 1].GetImage(0.5f, 0.5f))
    {
        image.Save(imageFilePath, ImageFormat.Png);
    }
}

Is there something I can do to get the proper PNG image, or is it a bug from Aspose?

@Gradlon,

Thanks for the sample presentation file and screenshots.

I reproduced the issue as you mentioned by using your sample presentation file. I found Shape/Picture fill color was not considered when exporting a slide to PNG file.

We require thorough evaluation of the issue. 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-45242

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.

1 Like

Hi,
I see that this issue is not fixed in Aspose.Slides 26.1 release. Do you know if this issue will be fixed in next February release?

Thanks,

@Gradlon,
The issue is still open. Unfortunately, I don’t have any additional information yet. Our developers will do their best to resolve the issue as soon as possible, but we cannot promise a specific timeline. Thank you for your patience. We will keep you updated.