Recently we noticed the cropped images in word file are not showing correctly in the html result, instead of showing the cropped area but stretched to fit the length.
@FSUPTC sorry I cannot replicate your issue, I’m using the latest version of Aspose.Words API (v23.4) and the following code:
var doc = new Aspose.Words.Document("C:\\Temp\\input.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setExportOriginalUrlForLinkedImages(true),
htmlSaveOptions.setExportPageSetup(true),
htmlSaveOptions.setPrettyFormat(true),
doc.save("C:\\Temp\\output\\output.html", htmlSaveOptions);
@FSUPTC we don’t provide support of oldest versions of Aspose API, so can you please update to the latest version and test. If the error persist can you please provide more information about the environment in where the application is running and post the code that you are using.
@FSUPTC yes and no, that depend on the original quality of the image, also the Aspose algorithm to change the size of the images tend to be better than the regular algorithm used by the browsers. Check here for further explanation.
I also going to open a Ticket for our dev team because the use or not of the property ScaleImageToShapeSize should not affect the final result.
@FSUPTC
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-25292
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.