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?