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

Compress image before save #36

Open
verdonarthur opened this issue Sep 15, 2020 · 0 comments
Open

Compress image before save #36

verdonarthur opened this issue Sep 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request Low importance package:backend The issue is linked to the modos backend

Comments

@verdonarthur
Copy link
Contributor

We must compress sended image before we saved them to prevent overusage of the disk.

Maybe this can be achieve with imagemin or with jimp (by scaling down the image)

fs.writeFile(imagePath, decodedData, (err) => {

@verdonarthur verdonarthur added enhancement New feature or request package:backend The issue is linked to the modos backend Low importance labels Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low importance package:backend The issue is linked to the modos backend
Projects
None yet
Development

No branches or pull requests

2 participants