Free Support Forum -

Image resolution less than original

Hello. I use aspose to convert word to html. After conversion images resolution less than original. Could you help me save original resolution.

Code that i use:
private static string GetHtmlFile(FileInfo file)
var doc = new Document(file.FullName);
var htmlFile = Path.ChangeExtension(file.FullName, “.html”);
var so = GetAsposeHtmlSaveOptions();
doc.Save(htmlFile, so);
return htmlFile;

private static HtmlSaveOptions GetAsposeHtmlSaveOptions()
return new HtmlSaveOptions(SaveFormat.Html)
CssStyleSheetType = CssStyleSheetType.Inline,
ExportDocumentProperties = false,
ExportFontResources = false,
ExportHeadersFootersMode = ExportHeadersFootersMode.None,
ExportTocPageNumbers = false,
ExportLanguageInformation = false,
ExportPageSetup = false,
ExportXhtmlTransitional = false,
PrettyFormat = true,
ScaleImageToShapeSize = false,
Encoding = Encoding.UTF8

Hi ,

Thanks for your inquiry. The image resolutions should remain preserved during exporting your Word document to HTML format. Please attach your input Word document and output HTML file you're getting this problem with here for testing? I will investigate the issue on my side and provide you more information.

Best regards,