We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert image memory usage increases

I am testing Aspose.Words for Java, using a 100KB image, after inserting it into word, the word becomes a few MB, and when I export the image in word, the image size is also a few MB, and the memory usage is large. Can I compress it? File size?The image has been uploaded to the attachment.

P1.jpg (95.7 KB)

@zou_yw I cannot reproduce the problem on my side using the latest 22.7 version of Aspose.Words for Java. The following code is sued for testing:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage("C:\\Temp\\P1.jpg");
doc.save("C:\\Temp\\out.docx"); 

Here is the output produced on my side: out.docx (99.9 KB)