Merge branch 'thumbnail-enhance-maxwidth' into 'master'

[Thumbnail] Change max width

See merge request famedly/famedlysdk!80
This commit is contained in:
Marcel 2019-09-14 18:02:10 +00:00
commit 7842c509e1
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ class Room {
// Try to manipulate the file size and create a thumbnail
try {
Image image = copyResize(decodeImage(file.readAsBytesSync()), width: 800);
Image thumbnail = copyResize(image, width: 236);
Image image = copyResize(decodeImage(file.readAsBytesSync()), width: 1200);
Image thumbnail = copyResize(image, width: 800);
file = File(path)..writeAsBytesSync(encodePng(image));
File thumbnailFile = File(path)