chore: Adjust image and thumbnail compression

This commit is contained in:
Krille Fear 2021-11-26 16:12:52 +01:00
commit 8f47ad654d
3 changed files with 38 additions and 22 deletions

View file

@ -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);
}