convert-image
PNG/JPG/JPEG画像をWebP、ICO、SVG形式に変換。「画像を変換して」「webpに変換」などで使用。
When & Why to Use This Skill
This Claude skill provides a streamlined solution for image format conversion, allowing users to transform PNG, JPG, and JPEG files into WebP, ICO, and SVG formats. It is designed to optimize visual assets for web performance and design requirements, helping users automate repetitive image processing tasks directly within their workflow.
Use Cases
- Web Performance Optimization: Convert heavy PNG or JPEG images into WebP format to significantly reduce file sizes and improve website loading speeds.
- Favicon and Icon Creation: Generate multi-size ICO files from a single source image to ensure consistent branding across browser tabs and application shortcuts.
- Vector-Based Web Embedding: Convert raster images into SVG format for scalable web graphics and efficient code-based image embedding.
- Asset Preparation for Developers: Quickly reformat design assets into specific technical formats required for frontend development or app deployment.
| name | convert-image |
|---|---|
| description | PNG/JPG/JPEG画像をWebP、ICO、SVG形式に変換。「画像を変換して」「webpに変換」などで使用。 |
Image Converter
PNG/JPG/JPEG画像をWebP、ICO、SVG形式に変換する。
使用方法
詳細は scripts/convert_image.py --help を参照。
# WebPに変換
python3 scripts/convert_image.py input.png --format webp
# ICOに変換(複数サイズ対応)
python3 scripts/convert_image.py input.png --format ico --sizes 16,32,48,256
# SVGに変換(画像埋め込み形式)
python3 scripts/convert_image.py input.png --format svg
# 出力先を指定
python3 scripts/convert_image.py input.jpg --format webp -o output.webp
依存関係
pip install Pillow