Hi Aspose,
I have a problem with ppt file. Aspose slides crash on Linux when I using ReplaceImage()
to replace the image in presentation. This is the Sample.zip (1.2 MB)
Below is my code:
var inputPptFile = @"/home/test/testFolder/sample.ppt";
var outputPptFile = @"/home/test/testFolder/output.ppt";
var imagePath = @"/home/test/testFolder/sanitized_image/image.png";
using (var inputStream = new FileStream(inputPptFile, FileMode.Open,
FileAccess.Read, FileShare.ReadWrite))
{
var presentation = new Presentation(inputStream);
var imageData = File.ReadAllBytes(imagePath);
Console.WriteLine("Replacing image");
presentation.Images[7].ReplaceImage(imageData);
Console.WriteLine("Done: Replacing image");
presentation.Save(outputPptFile, Aspose.Slides.Export.SaveFormat.Ppt);
}
Console.WriteLine("Done");
I’am using CentOS07, libgdiplus 6.0.5 and Aspose.Slides.Net 22.7
Please help me check and fix it.
Thansk !