-
-
Notifications
You must be signed in to change notification settings - Fork 777
Write/read error: no such file or directory #661
Copy link
Copy link
Closed
Description
i have this code:
const i = await jimp.read("./img/nero.jpg");
//const srcImage = await jimp.read("./img/v.png");
const font = await jimp.loadFont('./font/Windlass.fnt' /*jimp.FONT_SANS_32_WHITE*/);
await i.resize(532,392);
await i.print(font, 50, 50, 'Hello World!', 500);
await i.print(font, 200, 50, 'Test 2a riga', 500);
//i.composite(srcImage, 100, 0);
await i.write('./nero.jpg', err => console.error('write error: ', err));
await msg.channel.send({
files: [
"./nero.jpg"
]
});
fs.unlinkSync('./nero.jpg');
It gives 1 time on 2, Error: ENOENT: no such file or directory, stat 'D:\Discord Bot\gamertags-img\nero.jpg'. I tried some things, searched, but nothing works...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels