[Thumbnail] Change max width

This commit is contained in:
Christian 2019-09-14 18:02:10 +00:00 committed by Marcel
parent ec9c54ed1f
commit 5b7832084f

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)