-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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)
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
There was a problem hiding this 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
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