Hi,
We are using Aspose.Slides.NET.22.4.0 and we noticed that the PictureCompression property, which is present in HtmlOptions, is missing from Html5Options. The images are not compressed at all in the output file when using the conversion to Html5. Are there any plans to add the PictureCompression or something similar on Html5 as well?
The code I used to test:
using (Presentation presentation = new Presentation(pptxInputFilePath))
{
HtmlOptions options = new HtmlOptions
{
PicturesCompression = PicturesCompression.Dpi72,
HtmlFormatter = HtmlFormatter.CreateDocumentFormatter("", false)
};
presentation.Save($"{folderName}\\{fileName}_svg.html", SaveFormat.Html, options);
presentation.Save($"{folderName}\\{fileName}_html5.html", SaveFormat.Html5, options);
}
I am attaching the input file and the output files created after conversion to both Html5 and Html.
Thank you!
PptxOutputFiles.zip (2.3 MB)
image-compression.zip (1.8 MB)