Skip to content

feat: 添加 Ken Burns 关键帧动画支持 - #60

Open
WQfans wants to merge 10 commits into
Hommy-master:mainfrom
WQfans:main
Open

feat: 添加 Ken Burns 关键帧动画支持#60
WQfans wants to merge 10 commits into
Hommy-master:mainfrom
WQfans:main

Conversation

@WQfans

@WQfans WQfans commented Jun 13, 2026

Copy link
Copy Markdown

支持为图片添加平滑的缩放和平移动画效果:

  • 支持缩放动画:start_scale → end_scale
  • 支持横向平移:start_x → end_x(可选)
  • 支持纵向平移:start_y → end_y(可选)
  • 使用关键帧实现平滑过渡

API 示例:
{
"image_url": "https://...", "start": 0, "end": 3000000, "ken_burns": { "start_scale": 1.0, "end_scale": 1.06, "start_x": 0, "end_x": 0.03, "start_y": 0, "end_y": -0.02 } }

支持为图片添加平滑的缩放和平移动画效果:
- 支持缩放动画:start_scale → end_scale
- 支持横向平移:start_x → end_x(可选)
- 支持纵向平移:start_y → end_y(可选)
- 使用关键帧实现平滑过渡

API 示例:
{
  "image_url": "https://...",
  "start": 0,
  "end": 3000000,
  "ken_burns": {
    "start_scale": 1.0,
    "end_scale": 1.06,
    "start_x": 0,
    "end_x": 0.03,
    "start_y": 0,
    "end_y": -0.02
  }
}

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Hommy-master

Copy link
Copy Markdown
Owner

本来就支持缩放动画的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants