chore: Adjust image and thumbnail compression
This commit is contained in:
parent
0d1bb7103f
commit
8f47ad654d
3 changed files with 38 additions and 22 deletions
|
|
@ -29,11 +29,7 @@ class _SendFileDialogState extends State<SendFileDialog> {
|
|||
Future<void> _send() async {
|
||||
var file = widget.file;
|
||||
if (file is MatrixImageFile && !origImage) {
|
||||
try {
|
||||
file = await file.resizeImage();
|
||||
} catch (e) {
|
||||
// couldn't resize
|
||||
}
|
||||
file = await file.resizeImage(quality: 40, max: 1200);
|
||||
}
|
||||
await widget.room.sendFileEventWithThumbnail(file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue