-
Notifications
You must be signed in to change notification settings - Fork 11
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
waifu2x.upscaleImage is not a function #33
Comments
on javascript you probably have to use |
turns out it works, thanks for the help. I will close this issue. But I have a suggestion for the next update, just use the Canvas Module from NPMJS because the one on GitHub has an error or can't be imported, so I'm forced to only install the old version. |
What node.js version are you using? Make sure you have the latest version: https://nodejs.org/en I can't use the one on npm because it contains a bug and I cannot compile it. |
I'm already using the latest version of node.js (nodejs_21), but still can't install, like the response you see below: |
To build it you need to install Microsoft Visual C++ Build Tools: https://visualstudio.microsoft.com/downloads/?q=build+tools If you still can't install it you are better off asking them as it's an issue with their repo. https://github.com/Automattic/node-canvas Canvas is only used to get images from a PDF so if you don't want to upscale PDF's you don't need it. I will try to find an alternative way to do it since it's true that this dependency is a pain to install. |
Update to 1.4.0 I dropped the canvas dependency |
Please make a testing example (es module) I have done what is explained in the readme
but the response is like this
So, if you can, just make an example test
The text was updated successfully, but these errors were encountered: