forever-efficient/pitfal-solutions-website

optimize-images

Batch optimize images for web delivery. Converts to WebP, generates multiple sizes, and creates blur placeholders.

First seen Jan 26, 2026

Installation

$ npx skills add forever-efficient/pitfal-solutions-website --skill optimize-images

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from forever-efficient/pitfal-solutions-website · top by installs.

npx skills add forever-efficient/pitfal-solutions-website

Browse all from forever-efficient/pitfal-solutions-website

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Bash, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,366 B
  • docs SUMMARY.md 137 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 43 installs

SKILL.md

Optimize Images

Optimize images in the specified directory for web delivery.

Arguments

  • $ARGUMENTS - Directory path containing images to optimize (default: ./public/images)

Process

  1. Find all images:

``bash find ${ARGUMENTS:-./public/images} -type f \( -name ".jpg" -o -name ".jpeg" -o -name "*.png" \) ``

  1. For each image, generate:

- WebP versions at 320w, 640w, 1280w, 1920w, 2560w - Thumbnail at 150x150, 300x300 - Blur placeholder (10px width, base64)

Commands

# Install sharp-cli if not present
pnpm add -D sharp-cli

# Optimize single image example
npx sharp -i input.jpg -o output.webp --format webp --quality 80

# Generate srcset for an image
for size in 320 640 1280 1920 2560; do
  npx sharp -i input.jpg -o "output-${size}w.webp" --resize $size --format webp --quality 80
done

# Generate thumbnail
npx sharp -i input.jpg -o thumb-150.webp --resize 150 150 --fit cover --format webp

# Generate blur placeholder
npx sharp -i input.jpg -o blur.webp --resize 10 --format webp --quality 20

Output

Report:

  • Number of images processed
  • Original total size
  • Optimized total size
  • Size savings percentage