theme(shiroko): 新增平涂极简风肖像素材(透明底)
按用户给的参考图风格生成三张白子肖像:平涂、零描边、纯黑圆角矩形眼、无嘴、腮红、头部裁边。
- static/images/themes/shiroko/portraits/portrait-{front,tilt,close}.webp(907–1024×921,共 197KB)
- 未接进 --tb-deco,留给用户自行摆位;docs 里写了接入示例与提示词骨架。
- 抠图走"指定纯色底 + 按色值算 alpha":ImageGen 的 transparent 至今返回无 alpha 的 RGB,
按白底抠会吃掉白衬衫、也填不到闭合光环内部。
This commit is contained in:
@@ -215,3 +215,40 @@ wide scene suitable as a website background
|
||||
2. 按 16:9 取顶部 864px,整体混白 38%(`v*0.62 + 255*0.38`)—— 保证白卡片放上去仍有足够对比度;
|
||||
3. 高斯模糊 1.4px,让桌椅不抢正文;
|
||||
4. 导出 WebP q80(1920×1080,22KB);移动端从同一张按 9:16 中裁 620px 宽,导出 720×1003。
|
||||
|
||||
## 肖像素材(平涂极简风)
|
||||
|
||||
`static/images/themes/shiroko/portraits/` 下另有一组独立肖像,风格参照用户给的参考图:
|
||||
**平涂、零描边、纯黑圆角矩形眼、无嘴、腮红、头占满画面并裁边**。已抠成透明底,可直接叠在任何底色上。
|
||||
|
||||
| 文件 | 构图 | 尺寸 | 体积 |
|
||||
| --- | --- | --- | --- |
|
||||
| `portrait-front.webp` | 正面胸像,含深蓝外套与青色领结 | 907×921 | 66KB |
|
||||
| `portrait-tilt.webp` | 头微侧、眼睛偏横向,气质更松 | 975×921 | 61KB |
|
||||
| `portrait-close.webp` | 极限特写,头顶与两侧被画框切掉 | 1024×921 | 70KB |
|
||||
|
||||
用法(和背景装饰同一套槽位):
|
||||
|
||||
```css
|
||||
--tb-deco: url("/static/images/themes/shiroko/portraits/portrait-front.webp"), none, none, none, none, none;
|
||||
--tb-deco-size: auto 320px, auto, auto, auto, auto, auto;
|
||||
--tb-deco-position: left 0 bottom 0, left top, left top, left top, left top, left top;
|
||||
```
|
||||
|
||||
注意:
|
||||
|
||||
- 底部是**平直切口**(原图右下角有水印,统一裁掉底部 10%),适合直接贴到页面下沿或卡片边缘,
|
||||
不会出现"人浮在半空"的软边;
|
||||
- 透明边缘是 1px 抗锯齿羽化,深色底上会有一圈极淡的浅边,浅色底上看不出来;
|
||||
- 生成用的提示词骨架:
|
||||
|
||||
> Flat vector illustration, modern minimal poster style, no outlines, no gradients,
|
||||
> only flat solid color shapes … 角色描述 … Eyes are solid black vertically elongated
|
||||
> rounded rectangles, no highlights, no pupils, soft pink oval blush, no mouth.
|
||||
> The background is one flat solid pale blue-grey color #E6EEF8.
|
||||
|
||||
关键三点:① 必须强调 **no outlines / no gradients**;② 眼睛要写死成**纯黑色块**,否则会画出
|
||||
白眼球和高光;③ 背景指定**一个具体的纯色**(不要写 white),抠图时按这个色值算 alpha 才干净 ——
|
||||
白底会连白衬衫、光环内部一起吃掉,闭合光环里的白还填不到。
|
||||
|
||||
原始 1024 PNG 与几版备选留在 `outputs/portraits-raw/`(该目录被 gitignore,只在本机)。
|
||||
|
||||
Reference in New Issue
Block a user