Zoom
BaseZoomEffect
Bases: BaseModel
Base class for zoom effects.
start_zoom
instance-attribute
Starting zoom scale (1.0 is original size).
apply
Apply zoom effect to clip.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
clip |
VideoClip
|
The clip to apply the effect to. |
required |
Returns:
Type | Description |
---|---|
VideoClip
|
The clip with the effect applied. |
Source code in src/mosaico/effects/zoom.py
ZoomInEffect
Bases: BaseZoomEffect
Zoom-in effect for video clips.
type
class-attribute
instance-attribute
type: Literal['zoom_in'] = 'zoom_in'
Effect type. Must be "zoom_in".
start_zoom
class-attribute
instance-attribute
Starting zoom scale (1.0 is original size).
ZoomOutEffect
Bases: BaseZoomEffect
Zoom-out effect for video clips.
type
class-attribute
instance-attribute
type: Literal['zoom_out'] = 'zoom_out'
Effect type. Must be "zoom_out".
start_zoom
class-attribute
instance-attribute
Starting zoom scale (1.5 times the original size).