https://xxyh.xiaoli.icu/api/p_label_image.phphttps://xxyh.xiaoli.icu/api/p_label_image.php?text=%E7%B2%BE%E9%80%89%E6%8E%A8%E8%8D%90&color=%235b8cff&size=40&dot=1按文字长度自动计算宽度,生成圆角胶囊样式的标签图(半透明填充 + 同色描边),可带左侧圆点。
文字、颜色、字号可调,输出 SVG。适合做分类角标、状态标记、价格标签。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
text |
string | 必填 | 精选推荐 | 标签文字,最多 24 字 |
color |
string | 选填 | #5b8cff | 主题色 |
size |
int | 选填 | 40 | 字号 12~120,默认 40 |
dot |
int | 选填 | 1 | 是否显示左侧圆点 1/0,默认 1 |
https://xxyh.xiaoli.icu/api/p_label_image.php
此处将显示接口返回结果…
返回图片二进制或 SVG 源码(Content-Type 为 image/svg+xml 或 image/png),不是 JSON。
—