[Thumbnail] Change max width
This commit is contained in:
parent
ec9c54ed1f
commit
5b7832084f
|
@ -282,8 +282,8 @@ class Room {
|
||||||
|
|
||||||
// Try to manipulate the file size and create a thumbnail
|
// Try to manipulate the file size and create a thumbnail
|
||||||
try {
|
try {
|
||||||
Image image = copyResize(decodeImage(file.readAsBytesSync()), width: 800);
|
Image image = copyResize(decodeImage(file.readAsBytesSync()), width: 1200);
|
||||||
Image thumbnail = copyResize(image, width: 236);
|
Image thumbnail = copyResize(image, width: 800);
|
||||||
|
|
||||||
file = File(path)..writeAsBytesSync(encodePng(image));
|
file = File(path)..writeAsBytesSync(encodePng(image));
|
||||||
File thumbnailFile = File(path)
|
File thumbnailFile = File(path)
|
||||||
|
|
Loading…
Reference in a new issue