skills/image-convert/SKILL.md
Converts an image to a different format (PNG, JPG, WebP). Use when you need to change image formats, optimize for web, or prepare images for specific applications.
npx skillsauth add agntswrm/agent-media image-convertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Converts an image to a different format (PNG, JPG, or WebP).
npx agent-media@latest image convert --in <path> --format <format> [options]
| 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) |
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
}
Convert PNG to WebP:
npx agent-media@latest image convert --in photo.png --format webp
Convert to high-quality JPEG:
npx agent-media@latest image convert --in photo.png --format jpg --quality 95
Convert with custom output directory:
npx agent-media@latest image convert --in image.png --format webp --out ./converted
data-ai
Generates video from text prompts or animates static images. Use when you need to create videos from descriptions, animate images, or produce video content using AI.
development
Upscales an image using AI super-resolution to increase resolution with detail generation. Use when you need to enlarge images, improve low-resolution photos, or prepare images for large-format display.
testing
Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.
content-media
Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.