Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to have Conflict when create image file with model 'node-opcua' #19

Open
lhf552004 opened this issue Sep 6, 2016 · 1 comment

Comments

@lhf552004
Copy link

lhf552004 commented Sep 6, 2016

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
mycode2
It cannot scan correctly.
When I removed
var opcua = require('node-ua');
Then the image is
mycode
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?

@samt
Copy link
Owner

samt commented May 14, 2017

This is pretty strange, but have not been able to reproduce it. Which versions of node and npm are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants