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

Possible to use buffer as input? #5

Closed
ghost opened this issue Dec 15, 2014 · 1 comment
Closed

Possible to use buffer as input? #5

ghost opened this issue Dec 15, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 15, 2014

I want to render an ASCII representation of an image stored as a nodejs buffer. Will this library work for this purpose? How would I bypass the file read operation and pass a buffer in directly?

@guo-yu
Copy link
Owner

guo-yu commented Dec 16, 2014

Please try to use Ascii module like this:

var img = Ascii.fromBuffer(buf);

img.convert(function(err, result) {
  ...
})

@guo-yu guo-yu closed this as completed Dec 16, 2014
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

1 participant