Hi,
We are receiving the following issue when trying to save as gif the first slide of a presentation.
System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
at System.Drawing.Image…ctor()
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at Aspose.Slides.Export.PresentationAnimationsGenerator…ctor(Size frameSize)
at resentation , Stream, IList`1 , GifOptions )
at Aspose.Slides.Presentation.Save(Stream stream, Int32[] slides, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(Stream stream, Int32[] slides, SaveFormat format)
at TestPreview.Program.Main(String[] args) in C:\source\TestSlidesPreview\Program.cs:line 26
This is the test application: TestSlidesPreview.zip (26.5 KB).
The real code runs in a Linux-based Azure Function. I also tested locally with Ubuntu 22.04.2 LTS and produced the same result.
Following the recommendation on Fix System.Drawing.Common I was able to run the code, but copying custom DLLs is not an option for production environments.
Is there any other way to get the image of the slide on Linux? or when are you planning to incorporate the fix mentioned above in the Nuget packages?
Thanks.