convert_file
Convert local images or videos to another format and save the result to disk, either beside the source file or in a chosen output directory.
Instructions
Convert a local image or video to another format, and save the output to disk.
Args:
file_path: The file to convert.
output_format: Target format. Images: jpeg, png, webp, avif, heic,
jxl. Videos: mp4h264, mp4h265, webm, mkv, mov.
output_dir: Where to write the converted file. Defaults to alongside the input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_dir | No | ||
| output_format | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||