I need to create thumbnails from pptx slides. The code I use works fine but not with the attached pptx file - a basic pptx file using a basic design, it takes minutes to run this code:
- Code: Select all
var x = pptxDoc.SlideSize.Size.Width;
var y = pptxDoc.SlideSize.Size.Height;
var r = (y / x);
foreach (ISlide slide in pptxDoc.Slides)
{
var img = slide.SaveAsImage(280, Convert.ToInt32(280 * r));
using (MemoryStream memoryStream = new MemoryStream())
{
img.Save(memoryStream, ImageFormat.Jpeg);
}
}
I hope you can help me, regards Christian