image-convert

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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-convert" with this command: npx skills add agntswrm/agent-media/agntswrm-agent-media-image-convert

Image Convert

Converts an image to a different format (PNG, JPG, or WebP).

Command

npx agent-media@latest image convert --in <path> --format <format> [options]

Inputs

OptionRequiredDescription
--inYesInput file path or URL
--formatYesOutput format: png, jpg, webp
--qualityNoQuality for lossy formats (1-100, default: 80)
--outNoOutput path, filename or directory (default: ./)
--providerNoProvider 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:

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

Providers

  • local (default) - Uses sharp library, no API key required

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

image-remove-background

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

audio-transcribe

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

video-generate

No summary provided by upstream source.

Repository SourceNeeds Review