In Windows, we can use the following code:
using var doc = new Aspose.Slides.Presentation(source, loadOption);
var bpm = doc.Slides[0].GetThumbnail(doc.SlideSize.Size.ToSize() / 10);
bpm.Save(target, ImageFormat.Png);
However, in Linux, System.Drawing
is not supported. Therefore, we use the Aspose.Slides.NET6.CrossPlatform package, version 23.11.0. I am uncertain about how to implement GetThumbnail
, as the code doc.Slides[0].GetThumbnail(doc.SlideSize.Size.ToSize() / 10);
still relies on System.Drawing
and returns a Bitmap
object."