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

Free Support Forum - aspose.com

Aspose.Slides inverts images when rendering slides to Graphics

Slide 6 (and several others) in this file have images that are inverted when exported to to a Bitmap.
public virtual Bitmap ExportSlideAsImage(int slideNumber, Size size)
{

        int slideNumberToExport = slideNumber - 1 < 0 ? 0 : slideNumber;
        ISlide slide = _presentation.Slides[slideNumberToExport];
  
        Bitmap newImage = new Bitmap(size.Width, size.Height);
        using (Graphics graphics = Graphics.FromImage(newImage))
        {
            slide.RenderToGraphics(new RenderingOptions(), graphics, size);
        }

#if DEBUG
newImage.Save($“C:\temp\aspose_testing\{slideNumberToExport}.png”, ImageFormat.Png);
#endif
return newImage;
}

[Link]
NOTE. This file is less than 50MB and it will not let me attach it to this page.
https://www.conferenceharvester.com/test.zip

@rileyja,
Thank you for the issue description. I will answer you later.

@rileyja,
I reproduced the problem and logged the issue with ID SLIDESNET-42676 in our tracking system. Our development team will investigate this case. You will be notified when it is fixed.

Here is another example of objects that get inverted.test2.zip (25.7 KB)

@rileyja,
Thank you for the additional presentation example. I attached it to the issue.

Any updates?

@rileyja,
The problem you described has been resolved. A fix will be included in Aspose.Slides 21.9 (in the second half of September).