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

Free Support Forum - aspose.com

Incorrect autosize for 2d barcodes

tested with Aspose.Barcode for Java, versions 2.2.0 and 2.7.0, with symbologies “datamatrix” and "qr"
When using auto-size, there is a superfluous column of background pixels at the right, and the lowest row of dots is always only 1 pixel high. getHeight gives a wrong value, and the actual size of the generated image is still different.
Everything works when I set auto-size to false and set the desired dimensions myself.
E.g. with datamatrix, this is what I get (with borders and margins set to 0):
xdim/ydim=1, expected: 16x16, getWidth/getHeight: 16x15, actual image: 17x16
xdim/ydim=2, expected: 32x32, getWidth/getHeight: 32x30, actual image: 33x31
xdim/ydim=3, expected: 48x48, getWidth/getHeight: 48x45, actual image: 49x46

Hi,

Thank you for inquiry.

I have reproduced this issue at my end as well and logged this bug (ID: 29122). We will look into it and will inform you when it gets fixed. Sorry for the inconvenience.

The issues you have found earlier (filed as 29122) have been fixed in this update.


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