Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:zap: Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245

Daniel42b92bf7a290
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index f455cb902b..6dd1eb21a6 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -81,7 +81,7 @@ func NeedGenerateAssetsThumbnail(sourceImgPath string) bool {
if info.IsDir() {
return false
}
- return info.Size() > 1024*10
+ return info.Size() > 1024*1024
}
func GenerateAssetsThumbnail(sourceImgPath, resizedImgPath string) (err error) {