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 using the sharp version 0.26.3 to resize my images, when I run my application on local (using Windows 11), it working fine but when I deploy the code to server using docker with node:12-alpine image, my application crash when sharp resize uploaded image without any exception.
I was tried to set cache to false or set cache to sharp.cache({ memory: 0, files: 0, items: 0 }) but nothing helpful.
My size image code
const image = await sharp(${destPath}/${fileName})
.resize({ height })
.toFormat('jpeg')
.toFile(localStoragePath);
The text was updated successfully, but these errors were encountered:
I'm using the sharp version 0.26.3 to resize my images, when I run my application on local (using Windows 11), it working fine but when I deploy the code to server using docker with node:12-alpine image, my application crash when sharp resize uploaded image without any exception.
I was tried to set cache to false or set cache to sharp.cache({ memory: 0, files: 0, items: 0 }) but nothing helpful.
My size image code
const image = await sharp(
${destPath}/${fileName}
).resize({ height })
.toFormat('jpeg')
.toFile(localStoragePath);
The text was updated successfully, but these errors were encountered: