<< All versions
Skill v1.0.1
currentAutomated scan100/100aj-geddes/useful-ai-prompts/image-optimization
7 files
──Details
PublishedMay 14, 2026 at 07:39 PM
Content Hashsha256:a72cbae0393e9c69...
Git SHA3f5182cfd739
Bump Typepatch
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 89 lines · 2.2 KB
version: "1.0.1" name: image-optimization description: > Optimize images for web to reduce file size without sacrificing quality. Use compression, modern formats, and responsive techniques for faster loading.
Image Optimization
Table of Contents
Overview
Images typically comprise 50% of page weight. Optimization dramatically improves performance, especially on mobile networks.
When to Use
- Website optimization
- Responsive image implementation
- Performance improvement
- Mobile experience enhancement
- Before deployment
Quick Start
Minimal working example:
yaml
Format Selection:JPEG:Best for: Photographs, complex imagesCompression: Lossy (quality 70-85)Size: ~50-70% reductionTools: ImageMagick, TinyJPEGCommand: convert image.jpg -quality 75 optimized.jpgPNG:Best for: Icons, screenshots, transparent imagesCompression: LosslessSize: 10-30% reductionTools: PNGQuant, OptiPNGCommand: optipng -o3 image.pngWebP:Best for: Modern browsers (90% support)Compression: 25-35% better than JPEG/PNGFallback: Use <picture> elementTools: cwebpCommand: cwebp -q 75 image.jpg -o image.webpSVG:Best for: Icons, logos, simple graphics// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents | |
|---|---|---|
| Image Compression & Formats | Image Compression & Formats | |
| Responsive Images | Responsive Images | |
| Optimization Process | Optimization Process | |
| Monitoring & Best Practices | Monitoring & Best Practices |
Best Practices
✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values