metafloor
metafloor
To generate a barcode without text stretching, set the scale to achieve the desired width. Then adjust the height, For your example, you could start with scale=3 and height=15.
Are you only generating ISBN barcodes? Because they are fixed format. Or are you looking for a generic solution for different barcode types?
Sorry, lost track of this issue. Yes, you will need to double generate. It is the same as with using BWIPP in a postscript environment.
All of the drawing in BWIPP uses the postscript default nonzero winding rule. But the filled regions never intersect, so it doesn't have any effect.
What are you trying to achieve with testing for white background and path filling? Is it a bug you have found or something else?
I don't see the need for this and it breaks backward compatibility. Since you won't explain why you want this change, I will assume it's to allow css rules to...
Please provide the code and text values that generate the two different sized images.
This works for me: ``` const bwipjs = require('bwip-js'); console.log(bwipjs.BWIPJS_VERSION); // 4.3.0 (2024-03-12) (async function() { let buf = await bwipjs.toBuffer({ bcid:'code128', text: '5555563151499218', includetext: true, textxalign: 'center', backgroundcolor: '#abcdef',...
How do you expect me to help you when you have provided no details on your problem? Please read: https://freecodecamp.org/news/how-to-ask-a-question-on-a-forum/
Since it looks like typescript is grabbing the wrong import, please try the following: ``` import bwipjs from "bwip-js/browser"; ``` This is a to be documented feature, once more real...