Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Hommy-master
capcut-mate
Repository navigation
Code
Issues
5
(5)
Pull requests
4
(4)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Releases
v8.1.12
[v8.1.12] ✨ add_captions 支持自定义描边不透明度与宽度
Compare
Choose a tag to compare
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading.
Please reload this page
.
No results found
Hommy-master
released this
30 Oct 03:56
·
19 commits
to main since this release
v8.1.12
8fb0a2f
🎯 本次更新
add_captions 接口新增描边不透明度与描边宽度参数,解决此前两者在代码中写死、调用方无法调整的问题。
✨ 新增功能
新增接口级参数 border_alpha,取值范围 0.0 到 1.0,默认 1.0
新增接口级参数 border_width,取值范围 0 到 100,与剪映 UI 一致,默认 40
普通字幕描边与关键词描边都会应用这两个参数
🔧 行为说明
仅在提供描边颜色时生效,包括 border_color 与 keyword_border_color
宽度会在服务内部换算为草稿值,默认 40 对应此前的 0.08
不传新参数时输出与旧版本一致,完全向后兼容
关键词描边暂不支持单独设置宽度或不透明度
📚 文档更新
中英文 add_captions 文档补充参数表与描边说明
完整参数示例、cURL 示例、参数速查表同步更新
改动已同步至外部文档站点
✅ 测试
新增描边参数专项测试,覆盖默认值兼容、自定义取值、关键词高亮与关键词阴影两条路径、无描边颜色场景、取值范围校验
相关字幕测试全部通过
⚠️
注意事项
openapi.yaml 未修改,需要手动补充 border_alpha 与 border_width 两个字段并上传至 API 平台
You can’t perform that action at this time.