Inserting .bmp image is compressed

Does DocumentBuilder.InsertImage do a compression in case of .bmp images ?
I have different behavior than working with OpenXml.
With .jpg files everything is OK, I mean I have same behavior on both OpenXml and Aspose processing.

The problem is with unit testing. In case when image was added over Aspose, when I am validating document byte array by reading the stream from ImagePart(s) I see that the size is pretty less.

// Image insertation
DocumentBuilder builder = new DocumentBuilder(document);
builder.InsertImage(imageStream);


Thanks


Hi Rastko,

Thanks for your inquiry. Aspose.Words does nothing with images upon inserting them in documents. So, quality of images must be the same as of the original image. Sometimes you see the difference in quality because MS Word program uses different codecs to display the image. However, could you please attach your image file here for testing? We will investigate the issue on our end and provide you more information.

Best regards,