woo-j / OkapiBarcode

Open-source barcode encoding program written in Java
http://www.okapibarcode.org.uk
Apache License 2.0
327 stars 97 forks source link

Bugfix: support decimal magnification values by rounding up #110

Closed uksolanki closed 3 months ago

uksolanki commented 3 months ago

When we tried to magnify using decimal value as 1.2 the barcode image is 'cut' due to width being truncated a bit. This is fixed by converting width to near integer value using Math.ceil. Also, add test case to verify the same svg