-
Notifications
You must be signed in to change notification settings - Fork 288
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
no output from image with node v14.18.0 #29
Comments
If you are compiling from source, you'll need the dependencies from canvas(mostly cairo): https://www.npmjs.com/package/canvas . If not please let me know what type of system/os you are on. |
Same issue. Is there any additional documentation to learn how to use this tool for images? |
@khrome import art from "ascii-art";
const { Image } = art;
await Image({
src: "/Users/admin/images/1.png",
rows:80,
cols:80,
// stipple:"#000000",
posterize: true,
threshold:40
}, (err, rendered) => {
console.log(err,rendered);
}) Callback never gets hit, and using a sleep timer to keep the program running doesn't work either. |
I found that works if I use |
Both should work. The library is in the midst of a total rewrite for 3.0, my guess is src is a regression which hasn't been caught. Added to my list to track for the new version. FWIW the suites pass on node18, so I'd refer to them for usage. Let me know if you encounter any additional issues. Thanks! |
I try code like this, but I get nothing. I don't get an error, but there's no output to the screen.
The text was updated successfully, but these errors were encountered: