This commit is contained in:
2026-09-20 23:35:03 +08:00
parent 941ce4baab
commit 388c700996
19 changed files with 393 additions and 71 deletions

View File

@@ -21,7 +21,7 @@ function capImage(buf) {
/**
* 把图片 buffer 按 SOFT_CAP_BYTES 收纳:超出的图压成 RESIZE_WIDTH 宽。
* 三处共用:pollClipboard / bringFavoriteIntoHistory。
* 两处共用:pollClipboard / bringFavoriteIntoHistory(见 main.js)。
*
* 返回 { buf, preview },preview 由 capImage 给出(无图/小图 = null),
* 给数据库的 preview 列用。