Hi John,
It seems that .NET handles Images of .jpg type as ImageFormat.Jpeg. Aspose.Word uses these functions from .NET so .jpg images are saved automatically as .jpeg when converting to Html.
To change the extenstion of the image files generated when converting, you need to implement a HtmlExportSavingEvent. Use this code below which sets this up and changes the extentsion of all images while exporting to “.jpg”
static void Main()
{
Document doc = new Document(dataDir + "Test Document.doc");
doc.SaveOptions.HtmlExportImageSaving += new ExportImageSavingEventHandler(SaveOptions_HtmlExportImageSaving);
doc.Save(dataDir + "Test Document Out.html");
}
void SaveOptions_HtmlExportImageSaving(object sender, ExportImageSavingEventArgs e)
{
e.ImageFileName = Path.ChangeExtension(e.ImageFileName, ".jpg");
}
Thanks,