image-convert
Image Convert
Converts an image to a different format (PNG, JPG, or WebP).
Command
agent-media image convert --in <path> --format <format> [options]
Inputs
| Option | Required | Description |
|---|---|---|
--in |
Yes | Input file path or URL |
--format |
Yes | Output format: png, jpg, webp |
--quality |
No | Quality for lossy formats (1-100, default: 80) |
--out |
No | Output path, filename or directory (default: ./) |
--provider |
No | Provider to use (default: auto-detect) |
Output
Returns a JSON object with the converted image path:
{
"ok": true,
"media_type": "image",
"action": "convert",
"provider": "local",
"output_path": "converted_123_abc.webp",
"mime": "image/webp",
"bytes": 23456
}
Examples
Convert PNG to WebP:
agent-media image convert --in photo.png --format webp
Convert to high-quality JPEG:
agent-media image convert --in photo.png --format jpg --quality 95
Convert with custom output directory:
agent-media image convert --in image.png --format webp --out ./converted
Providers
- local (default) - Uses sharp library, no API key required
More from neversight/skills_feed
ai-image-generation
|
7react-best-practices
Provides React patterns for hooks, effects, refs, and component design. Covers escape hatches, anti-patterns, and correct effect usage. Must use when reading or writing React components (.tsx, .jsx files with React imports).
7ui-designer
Use when user needs visual UI design, interface creation, component systems, design systems, interaction patterns, or accessibility-focused user interfaces.
7python-env
Fast Python environment management with uv (10-100x faster than pip). Triggers on: uv, venv, pip, pyproject, python environment, install package, dependencies.
7typescript-best-practices
Provides TypeScript patterns for type-first development, making illegal states unrepresentable, exhaustive handling, and runtime validation. Must use when reading or writing TypeScript/JavaScript files.
6ai-marketing-videos
|
6