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

Price form: compress proof images before upload #31

Closed
raphodn opened this issue Dec 19, 2023 · 1 comment · Fixed by #44 or #41
Closed

Price form: compress proof images before upload #31

raphodn opened this issue Dec 19, 2023 · 1 comment · Fixed by #44 or #41
Labels

Comments

@raphodn
Copy link
Member

raphodn commented Dec 19, 2023

Story

When adding a price, the user is asked to provide a proof (a photo of a price tag). We currently upload the original version of the image.

But the image is often large (smartphone cameras output images of 5MB+), and the network isn't necessarily good in shopping malls / supermarkets.

The idea is to compress the image before upload.

Ideas

Transform into webp

What about croping ? Not concerned here, maybe in the future, to be discussed.

Libraries

https://github.com/fengyuanchen/compressorjs

@raphodn raphodn changed the title Compress proof images before upload Price form: compress proof images before upload Dec 20, 2023
@raphodn
Copy link
Member Author

raphodn commented Feb 3, 2024

Additional notes for future improvements (heic, safari...)

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