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

Enhancement/resize images #46

Merged
merged 10 commits into from
Apr 1, 2022
Merged

Conversation

beryl-koller
Copy link
Contributor

Resizing images on client side, before it's sent to backend : biggest side (width or height) of picture uploaded by user is now 600px max.
Upload button moved to a separate component

@beryl-koller beryl-koller requested a review from leihuayi March 31, 2022 14:41
Copy link
Contributor

@leihuayi leihuayi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently it writes an image with extension .jpg, but in reality it writes file of type png, which is therefore much bigger in pixels (see second file) than the original file (see first file)
bug-resize

Actually I think you should not change the image type : if it is originally in png, keep in png, if it is in jpeg, keep in jpeg

Copy link
Contributor

@leihuayi leihuayi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testé sur dev et preprod

@leihuayi leihuayi added the enhancement Improvement of existing code w/o creating new feature label Apr 1, 2022
@beryl-koller beryl-koller merged commit 161ae1c into develop Apr 1, 2022
@beryl-koller beryl-koller deleted the enhancement/resize-images branch April 1, 2022 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing code w/o creating new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants