-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Files should show how big they are #2429
Comments
NOTE to myself: |
@SebinSong The compression should happen before any file is uploaded, not afterward. Once files are uploaded their size shouldn't change... so I'm confused by your comment. |
@taoeffect I mean, the attachment |
… sebin/task/#2429-file-should-show-size
* determine if an image needs compression or not * implement compressImage() function * write a function that checks if image/webp format is supported * implement recursive compression logic in compressImage() * optimise compression factors / some corrections on file details post compression * update the minimum quality * fix the typo iamge * do not resize the image unless its physical size is too large * attachment data in contracts needs size field * file-size to a human readable string / display it in multiple UIs * update according to feedback * update maximum image dimension * remove console.log / revert back webP format as default * add a constant for kilo-byte * updates for PR review * file size update after image compression
closed by #2435 |
Problem
Currently when viewing a file attachment it doesn't tell you how big the attachment is:
Solution
Display file size info (e.g. "7KB", "10MB", etc.) somewhere here:
The text was updated successfully, but these errors were encountered: