/rajnandan1:format-convertfrom rajnandan1
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.
Ships in rajnandan1. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Convert any image between PNG, JPG, WebP, TIFF, BMP, GIF, HEIC, and AVIF using ImageMagick. Lossless by default — preserves maximum quality and original dimensions.
ImageMagick is required. For HEIC/AVIF support, ensure delegates are installed.
brew install imagemagick # macOS
sudo apt install imagemagick # Debian/Ubuntu
Run the bundled script:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" <input-image> --to FORMAT [OPTIONS]
| Flag | Description | Default |
|---|---|---|
--to FORMAT | Target format (png, jpg, webp, tiff, bmp, gif, heic, avif) | (required) |
--output DIR | Output directory | ./converted/ |
--quality N | Quality for lossy formats 1-100 | 100 |
--bg-color HEX | Background color when removing alpha (6-digit hex, no #) | FFFFFF |
--batch DIR | Convert all supported images in a directory | — |
--recursive | Include subdirectories in batch mode | off |
--formats | List supported formats and exit | — |
For the full reference with alpha support, lossy/lossless details, and conversion notes, read references/formats.md.
| Format | Alpha | Quality |
|---|---|---|
| PNG | yes | lossless |
| JPG | no | lossy |
| WebP | yes | both |
| TIFF | yes | lossless |
| BMP | no | lossless |
| GIF | yes (1-bit) | lossless |
| HEIC | yes | lossy |
| AVIF | yes | both |
Convert PNG to JPG:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" screenshot.png --to jpg
Convert HEIC photos to PNG:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" photo.heic --to png
Convert to WebP for web optimization:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" banner.png --to webp --quality 90
Batch convert all images in a folder to WebP:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" --batch ./images/ --to webp --output ./web-images/
Batch convert recursively:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" --batch ./photos/ --to jpg --recursive --output ./exported/
Transparent PNG to JPG with custom background:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" logo.png --to jpg --bg-color 000000
List supported formats:
bash "${CLAUDE_SKILL_DIR}/scripts/convert.sh" --formats
The script uses ImageMagick for all conversions with a lossless-first strategy:
Alpha detection — Before converting to a non-alpha format (JPG, BMP), the script checks whether the source image actually has transparency using magick identify -format "%A". Only images with real alpha data get flattened against the background color.
Quality maximization — The default quality is 100. For formats that support true lossless encoding:
webp:lossless=trueheif:lossless=true-compress None)Dimension preservation — The script never resizes. Output dimensions always match the source.
Same-format skip — If the source is already the target format, the file is skipped rather than re-encoded.
libheif). If not installed, conversion will fail with a clear error.--bg-color (default white). Opaque sources pass through unchanged.Files are saved as <original-name>.<target-ext> in the output directory. For example:
converted/screenshot.jpgconverted/photo.pngconverted/banner.webpWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rajnandan1/such-skills --plugin rajnandan17 skills in this plugin
/animate-svgCreate hand-crafted, dependency-free animated SVGs: self-drawing paths and signatures, loading spinners, morphing shapes, motion along a path, animated gradients, waves, pulses, and animated logos, icons, and badges — up to complex layered scenes with choreographed build-ins, particle fields, and parallax — choosing the right technique (CSS vs SMIL) for how the SVG is delivered (inline HTML, <img>, CSS background, GitHub README, favicon). Use when the user wants any animated SVG, asks to animate an existing SVG, icon, logo, or favicon, wants an animated scene, illustration, hero background, or banner, or mentions SMIL, stroke drawing, dashoffset, path or shape morphing, motion path, loader, spinner, animated checkmark, particles, parallax, or a "draws itself" effect.
/image-resizeResize and crop images to exact platform-specific dimensions for social media, app stores, ads, and web. Supports 60+ platform presets including OG images, YouTube thumbnails, App Store screenshots, Play Store graphics, TikTok, Pinterest, Threads, Substack, Chrome Web Store, Notion covers, Instagram, Twitter, Dribbble, Bluesky, Product Hunt, LinkedIn, Facebook, and more. Uses ImageMagick for high-quality Lanczos resampling. Works on macOS, Linux, and Windows. Use this skill whenever the user wants to resize an image for a specific platform, create social media assets, generate app store screenshots, make thumbnails, create OG images, prepare images for upload, or batch-resize to multiple sizes. Also trigger when the user mentions any platform (YouTube, TikTok, Pinterest, App Store, Play Store, Substack, Threads, Chrome Web Store, Notion, etc.) in the context of image sizing, resizing, cropping, or preparation — even if they don't explicitly say "resize".