convert-to-webp

Solid

Convert images (PNG, JPG, etc.) to WebP format. Use when saving screenshots or images for web projects, Hugo sites, or any context where WebP is preferred.

Data & Documents 8 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
86
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Convert to WebP Convert one or more images to WebP format. ## Usage Arguments: one or more file paths, optionally followed by `--dest <directory>` and/or `--quality <number>`. Examples: - `/convert-to-webp /tmp/screenshot.png` - `/convert-to-webp /tmp/a.png /tmp/b.jpg --dest /path/to/site/static/images` - `/convert-to-webp /tmp/photo.jpg --quality 90` ## Instructions First, check which tool is available (run once per session): 1. **`cwebp`** -- best quality control. Install via `brew install webp` 2. **`sips`** -- built into macOS (Monterey+), no install needed. No quality flag for WebP output. Pick whichever is available. Prefer `cwebp` if both exist. For each input file: 1. Skip if the file is already `.webp` 2. Determine the output path: - If `--dest` is provided, output to that directory with the same filename but `.webp` extension - Otherwise, output to the same directory as the input with `.webp` extension 3. Convert: - **cwebp**: `cwebp -q <quality> <input> -o <output>` (default quality: 85) - **sips**: `sips -s format webp <input> --out <output>` 4. Report the output path and file size ## Provenance This skill drives two interchangeable command-line tools and bundles neither: - **[`cwebp`](https://developers.google.com/speed/webp/docs/cwebp)** — part of Google's **libwebp** (© Google, [BSD-3-Clause](https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/COPYING)), installed separately via `brew install webp`. - **`sips`** — Apple's...

Details

Author
kevin-burns
Repository
kevin-burns/claude-skills
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

ss-format-convert

Convert images between formats: PNG, JPG/JPEG, WebP, TIFF, BMP, GIF, HEIC, and AVIF. Performs high-quality lossless conversion by default. Handles alpha channel transparency automatically — compositing against a configurable background color when converting to formats that lack alpha support (JPG, BMP). Supports single-file and batch directory conversion with optional recursive subdirectory scanning. Uses ImageMagick. Use this skill whenever the user wants to: convert an image to another format, change image format, save as PNG/JPG/WebP/TIFF, convert HEIC photos to JPG or PNG, batch convert images, make images web-compatible, convert to WebP for web optimization, or anything involving image format conversion. Also trigger when the user mentions format names in the context of converting, exporting, or saving images.

2 Updated 1 weeks ago
rajnandan1
Data & Documents Listed

svg-to-png

Converts a single SVG file into a PNG using the `rsvg-convert` command-line tool. Use when the user asks to render, export, rasterize, or convert an SVG to a PNG image — typically for embedding diagrams in places that don't support inline SVG (Medium, slide decks, documents). Requires `rsvg-convert` (librsvg) installed on the host. Do not use for generating new SVG content, batch conversion of folders, or other image formats.

4 Updated 1 months ago
bgorkem
Data & Documents Solid

file-converter

Convert & transform files - images (resize, format, HEIC), markdown (PDF/HTML), data (CSV/JSON/YAML/TOML/XML), SVG, base64, text encoding. Cross-platform, single & batch mode. This skill should be used when converting file formats, resizing images, generating PDFs from markdown, or transforming data between formats.

28 Updated 1 weeks ago
georgekhananaev