Reduce the quality of thumbnails that are uploaded
This commit is contained in:
parent
7bf47f545f
commit
739c377a76
1 changed files with 5 additions and 2 deletions
|
@ -67,8 +67,11 @@ class FileUploader {
|
|||
String fileObjectKey =
|
||||
await putFile(fileUploadURL, io.File(encryptedFilePath));
|
||||
|
||||
final thumbnailData = (await (await file.getAsset())
|
||||
.thumbDataWithSize(THUMBNAIL_LARGE_SIZE, THUMBNAIL_LARGE_SIZE));
|
||||
final thumbnailData = (await (await file.getAsset()).thumbDataWithSize(
|
||||
THUMBNAIL_LARGE_SIZE,
|
||||
THUMBNAIL_LARGE_SIZE,
|
||||
quality: 50,
|
||||
));
|
||||
final encryptedThumbnailName =
|
||||
file.generatedID.toString() + "_thumbnail.aes";
|
||||
final encryptedThumbnailPath = tempDirectory + encryptedThumbnailName;
|
||||
|
|
Loading…
Add table
Reference in a new issue