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
Hi @samt , when I try to generate barcode image file in my application, I found the barcode in the image file can't be recognized. Then I just write a demo:
var barcode = require('barcode');
var opcua = require('node-ua');
var path = require('path');
var code39 = barcode('code39', {
data: "r1001-20160906-0001",
width: 500,
height: 100,
});
var outfile = path.join(__dirname, '../temps/imgs', 'mycode2.png');
code39.saveImage(outfile, function (err) {
if (err) throw err;
console.log('File has been written!');
});
The image is
It cannot scan correctly.
When I removed var opcua = require('node-ua');
Then the image is
It's OK.
I found there is a model 'colors' in its node_modules . I guess model 'colors' caused the conflict .
How to avoid it?
The text was updated successfully, but these errors were encountered:
Hi @samt , when I try to generate barcode image file in my application, I found the barcode in the image file can't be recognized. Then I just write a demo:
The image is
It cannot scan correctly.
When I removed
var opcua = require('node-ua');
Then the image is
It's OK.
I found there is a model 'colors' in its node_modules . I guess model 'colors' caused the conflict .
How to avoid it?
The text was updated successfully, but these errors were encountered: