Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PSD 批量修改导出

任何 PSD + 任何 Excel → 自动替换文字图层 → 一键输出印刷级 PNG

ClawHub License

一句话

智能解析 PSD 图层样式,按 Excel 名单批量替换文本,一键输出 300 DPI 印刷级 PNG。

快速开始

# 预览(零风险)
python scripts/batch_from_excel.py 名单.xlsx 模板.psd --dry-run

# 导出
python scripts/batch_from_excel.py 名单.xlsx 模板.psd output/ --color 0 0 0 --size 54

核心能力

功能 说明
🔍 图层检测 自动识别字体族、字号(pt)、颜色、位置、容量
🧠 列名匹配 四级置信度:精确→包含→同义词→顺序
🔤 字体匹配 三级引擎:exact → family → similar
✏️ 文本修改 二进制定位 Txt TEXT 描述符,零 PSD 损坏
🖼️ PNG 渲染 跳过像素缓存,PIL 居中重绘,背景缓存
👁️ Dry-Run 完整预览不生成文件

安装

# ClawHub
clawhub install luis1213899/psd-batch-export

# 或直接使用
git clone https://github.com/luis1213899/psd-batch-export.git
pip install psd-tools Pillow pandas openpyxl

字体

百度网盘合集:下载 提取码 kxrv

python fonts/download_fonts.py --all

适用场景

观赛门票 · 参会证 · 工牌 · 录取通知书 · 证书奖状 · 号码牌 · 价签

项目结构

psd-batch-export/
├── SKILL.md                   # 技能入口
├── fonts/                     # 字体库
│   ├── README.md
│   └── download_fonts.py
└── scripts/
    ├── batch_from_excel.py    # 一键流程
    ├── psd_text_editor.py     # PSD 文本修改引擎
    └── render_psd_batch.py    # PSD → PNG 渲染引擎

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages