Free Support Forum - aspose.com

Image resolution on insert

I noticed that when I inserted images with DocBuilder.InsertImage they appeared too large in the .docx
I had to fix the size myself using:
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
DocBuilder.InsertImage(img, (double)72 / img.HorizontalResolution * img.Width, (double)72 / img.VerticalResolution * img.Height);

Can this be done automatically or am I using a wrong approach?

Hi

Thanks for your request. I see that inserted image has 133% of original size. I have created new issue #4478 in our defect database. Please expect a reply before the next hotfix (within 2-3 weeks). We might just fix it by then or provide more information.

Best regards.

The issues you have found earlier (filed as WORDSNET-1564) have been fixed in this .NET update and in this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.