You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expectation:
The scaled barcode image is as large as possible within the defined image size while maintaining the aspect ratio of the barcode. If the aspect ratio of the barcode makes it to where the specified dimension cannot be honored, then scale up the barcode as much as possible and add padding in the horizontal or vertical direction and center the barcode.
Reality:
The barcode's scale factor is rounded down to the nearest whole number. Using the above example, here is the image output:
scaled_1x.png
scaled_2x.png
scaled_3x.png
scaled_2_5x.png
scaled_409_82.png
The text was updated successfully, but these errors were encountered:
Add support for fractional scaling to the barcode.Scale function for 2D barcodes.
Take the following example code:
Expectation:
The scaled barcode image is as large as possible within the defined image size while maintaining the aspect ratio of the barcode. If the aspect ratio of the barcode makes it to where the specified dimension cannot be honored, then scale up the barcode as much as possible and add padding in the horizontal or vertical direction and center the barcode.
Reality:
The barcode's scale factor is rounded down to the nearest whole number. Using the above example, here is the image output:
scaled_1x.png
scaled_2x.png
scaled_3x.png
scaled_2_5x.png
scaled_409_82.png
The text was updated successfully, but these errors were encountered: