-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Best practice for "generic" Jimp instance type missing from docs? #1328
Comments
Haha, now I feel stupid - did not think about looking for |
will be released soon! |
🚀 Issue was released in |
Hey @hipstersmoothie, thanks for all the improvements and new release 🚀 I upgraded to v1 without major issues but one question regarding the instance type: Should The docs still say that Would be great to hear your thoughts on this, thanks! 🙂 |
that's not a nice error! Would you mind opening a new issue with that? |
Is your feature request related to a problem? Please describe.
I'm working on a solution that will load an image from url or a buffer, transform it and output it in base64. This means it will be passed around through a couple functions. I've tried to figure out a type for the Jimp object being passed as parameter, but nothing I tried works (see examples below). Resources from the internet show examples with older versions of Jimp (with default import).
AFAIK it was possible with older versions just by doing this:
Is it not possible anymore and I should treat url and buffer inputs as completely separate pipelines?
Describe the solution you'd like
Hopefully it's just a case of docs not being clear?
Additional context
Sandbox
The text was updated successfully, but these errors were encountered: