docs(memory): 透明底素材的生成与抠图口径
This commit is contained in:
@@ -65,3 +65,8 @@
|
|||||||
- CLI 有两个构建入口必须同步:根 `go build .` 与 Dockerfile 的 `./cmd/`。
|
- CLI 有两个构建入口必须同步:根 `go build .` 与 Dockerfile 的 `./cmd/`。
|
||||||
- 现有 CLI:`web censor uid ban restore reports restrict unrestrict hide-public`。
|
- 现有 CLI:`web censor uid ban restore reports restrict unrestrict hide-public`。
|
||||||
- git `https://git.shiroko.one/tamakyi/tamabox`(main),`git push` 可直推;`outputs/` 已 gitignore。
|
- git `https://git.shiroko.one/tamakyi/tamabox`(main),`git push` 可直推;`outputs/` 已 gitignore。
|
||||||
|
- **ImageGen 的 `background: "transparent"` 至今不生效**(返回 RGB、无 alpha 通道)。要透明素材:
|
||||||
|
提示词把背景写成一个**具体纯色**(不要写 white,白衬衫/光环会被一起吃),
|
||||||
|
再按该色值算 alpha:`alpha = clip((maxChannelDiff - 6) / 12)`,最后 `MinFilter(3)` 收 1px。
|
||||||
|
闭合图形(如光环圆环)内部的白/底色用 floodfill 填不到,按色值抠才干净。
|
||||||
|
- 生成图的右下角有 "AI生成 WORKBUDDY" 水印,做素材时统一裁掉底部约 10%(切口平直,正好贴页面下沿)。
|
||||||
|
|||||||
Reference in New Issue
Block a user