?
resizeVideo
Resize a video file
mindstudio.resizeVideo({ videoUrl, mode }) → Result
Resize a video file
Parameters
videoUrl
string
RequiredURL of the source video to resize
mode
string
RequiredResize mode: 'fit' scales within max dimensions, 'exact' forces exact dimensions
fitexact
maxWidth
number
Maximum width in pixels (used with 'fit' mode)
maxHeight
number
Maximum height in pixels (used with 'fit' mode)
width
number
Exact width in pixels (used with 'exact' mode)
height
number
Exact height in pixels (used with 'exact' mode)
strategy
string
Strategy for handling aspect ratio mismatch in 'exact' mode
padcrop
intermediateAsset
boolean
When true, the asset is created but hidden from the user's gallery (tagged as intermediate)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.resizeVideo({ videoUrl: /* ... */, mode: /* ... */ });