feat: 添加 Ken Burns 关键帧动画支持 - #60
Open
WQfans wants to merge 10 commits into
Open
Conversation
支持为图片添加平滑的缩放和平移动画效果:
- 支持缩放动画: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>
Owner
|
本来就支持缩放动画的 |
# Conflicts: # src/service/add_images.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
支持为图片添加平滑的缩放和平移动画效果:
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 } }