Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -441,7 +441,7 @@ def apply_kenburns_effect(clip, target_resolution, effect_type=None):
|
|
441 |
elif effect_type == "up-left":
|
442 |
start_zoom = 1.0
|
443 |
end_zoom = 1.0
|
444 |
-
start_center = (max_offset_x +
|
445 |
end_center = (target_w / 2, target_h / 2)
|
446 |
else:
|
447 |
raise ValueError(f"Unsupported effect_type: {effect_type}")
|
|
|
441 |
elif effect_type == "up-left":
|
442 |
start_zoom = 1.0
|
443 |
end_zoom = 1.0
|
444 |
+
start_center = (max_offset_x + target_w / 2, max_offset_y + target_h / 2)
|
445 |
end_center = (target_w / 2, target_h / 2)
|
446 |
else:
|
447 |
raise ValueError(f"Unsupported effect_type: {effect_type}")
|