Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharp get crash when run on docker with node:12-alpine #2973

Closed
sonnguyenjom opened this issue Nov 15, 2021 · 2 comments
Closed

Sharp get crash when run on docker with node:12-alpine #2973

sonnguyenjom opened this issue Nov 15, 2021 · 2 comments
Labels

Comments

@sonnguyenjom
Copy link

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);

@lovell
Copy link
Owner

lovell commented Nov 15, 2021

This is probably #2570, please can you upgrade to the latest version.

@lovell lovell added question and removed triage labels Nov 15, 2021
@sonnguyenjom
Copy link
Author

This is probably #2570, please can you upgrade to the latest version.

after after the latest version, it working correctly now. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants