refactor: Use image package to resize images
This commit is contained in:
parent
c5f084db87
commit
b44f309151
8 changed files with 61 additions and 145 deletions
|
|
@ -31,7 +31,7 @@ extension RoomSendFileExtension on Room {
|
|||
MatrixFile thumbnail;
|
||||
try {
|
||||
if (file is MatrixImageFile) {
|
||||
thumbnail = await resizeImage(file);
|
||||
thumbnail = await file.resizeImage();
|
||||
|
||||
if (thumbnail.size > file.size ~/ 2) {
|
||||
thumbnail = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue