The code:
var presentation = new Presentation(“source.pptx”);
presentation.Save(“out.pptx”, SaveFormat.Pptx);
It’s work fine at windows. But when run it in linux. It took more than 4G memory and cause the Exception.
The Exception:
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at Aspose.Slides.ImageCollection.( , Size )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single , Boolean& )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single )
at Aspose.Slides.ImageCollection.(ISvgImage , Single , Single )
at .(ISlidesPicture )
at .(ISlidesPicture , , )
at .(ISlidesPicture , , )
at .(PictureFillFormat , , )
at .(IPictureFrame , , )
at .(IShape , , , )
at .(IGroupShape , , , )
at .(IShape , , , )
at .(IGroupShape , , , )
at .(IShape , , , )
at .(IGroupShape , , , )
at .(IBaseSlide , , )
at .(ISlide )
at .( , ISlide , )
at .(IPresentation , Stream , PresentationTypeEx , IPptxOptions , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , PresentationTypeEx , IPptxOptions )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
It’s seems a error about gdiplus.
Envirment:
system version: Ubuntu20.04 with WSL2 on Windows10
.net version: 6.0.5
Aspose.Slides version: 22.5.0
The file:
source.zip (591.9 KB)
Thanks.