Feat: generate thumbnails for image file

This commit is contained in:
HFO4
2019-12-08 14:16:01 +08:00
parent a445da5286
commit 0932a10fed
7 changed files with 147 additions and 9 deletions

View File

@@ -130,8 +130,6 @@ func GenericAfterUpload(ctx context.Context, fs *FileSystem) error {
return ErrInsertFileRecord
}
// TODO 是否需要立即获取图像大小?
// 异步尝试生成缩略图
go fs.GenerateThumbnail(ctx, file)