You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem with using plugin-shadow, that seems to be a part of the main branch now.
My most basic scenario is as follows:
`const { Jimp } = require("jimp");
function()
const image = await Jimp.read(__dirname+"\test.png");
image.shadow()
image.write(__dirname+"test_shadow.jpg");Throws me an error:image.shadow()
^
TypeError: image.shadow is not a function`
npm tells me I have [email protected], I even installed @jimp/[email protected] but can't seem to get it to work with the rest of my code. I've tried using configure but that lead to another class of errors.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having a problem with using plugin-shadow, that seems to be a part of the main branch now.
My most basic scenario is as follows:
`const { Jimp } = require("jimp");
function()
const image = await Jimp.read(__dirname+"\test.png");
image.shadow()
image.write(__dirname+"test_shadow.jpg");
Throws me an error:
image.shadow()^
TypeError: image.shadow is not a function`
npm tells me I have [email protected], I even installed @jimp/[email protected] but can't seem to get it to work with the rest of my code. I've tried using configure but that lead to another class of errors.
Beta Was this translation helpful? Give feedback.
All reactions