scionoftech / webp-converter

[DEPRECATED] A small node.js library for converting any image to webp file format or converting webp image to any image file format.
MIT License
229 stars 43 forks source link

node_modules/webp-converter/temp not created at npm install #41

Open aFagot64 opened 3 years ago

aFagot64 commented 3 years ago

The directory node_modules/webp-converter/temp is requested for performing the conversion, but is not created at npm install.

Complexify installation as the directory temp needs to be created 'by hand' after fresh install.

{ Error: ENOENT: no such file or directory, open '/myProject/node_modules/webp-converter/temp/3d51e039-d615-4569-84b8-ee5f8d73d459.jpg' at Object.openSync (fs.js:443:3) at Object.writeFileSync (fs.js:1194:35) at base64_to_image (/myProject/node_modules/webp-converter/src/buffer_utils.js:30:8)

....

Givemeurcookies commented 3 years ago

The project has been deprecated by it's author. I intend to maintain the project in my fork https://github.com/Givemeurcookies/promised-webp-converter Please re-open the issue there and I'll address it when I have time.

ads05henet commented 2 years ago

in creating my project I created the following lines.

     new Promise((resolve, reject) => {
        fs.access('./node_modules/webp-converter/temp', (errer) => {
          if (errer) {
            fs.mkdirSync('./node_modules/webp-converter/temp')
            resolve()
          }
        })
      })

So I used the image for the container version node:14-buster-slim