Open
Description
When i call the toBuffer API like so:
const buffer = await bwipjs.toBuffer({
bcid: 'code128',
text: '5555563151499218',
includetext: true,
textxalign: 'center',
backgroundcolor: '#ffffff',
The generated PNG is transparent, not white.
To fix it i have to call the API like so:
const buffer = await bwipjs.toBuffer({
bcid: 'code128',
text: '5555563151499218',
includetext: true,
textxalign: 'center',
backgroundcolor: 'ffffff',
and it adds a white background. The backgroundcolor: '#ffffff',
should either throw an error or work as its really confusing to figure out what is going on!
Metadata
Metadata
Assignees
Labels
No labels