Sharp: Jpg is occupied

Created on 25 Jul 2017  路  2Comments  路  Source: lovell/sharp

windows 10

var img = sharp('xxx.jpg');
img.toBuffer().then((buffer) => {
  buffer;
});

After the .toBuffer, the file is occupied.
Unable to delete in system.

question

All 2 comments

Hello, did you see #415?

Sorry, I didn't see the issue(415).

It has been solved:

Sharp.cache(false);

Thank you.

Was this page helpful?
0 / 5 - 0 ratings