File contents 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:
Format Selection:
JPEG:
Best for: Photographs, complex images
Compression: Lossy (quality 70-85)
Size: ~50-70% reduction
Tools: ImageMagick, TinyJPEG
Command: convert image.jpg -quality 75 optimized.jpg
PNG:
Best for: Icons, screenshots, transparent images
Compression: Lossless
Size: 10-30% reduction
Tools: PNGQuant, OptiPNG
Command: optipng -o3 image.png
WebP:
Best for: Modern browsers (90% support)
Compression: 25-35% better than JPEG/PNG
Fallback: Use <picture> element
Tools: cwebp
Command: cwebp -q 75 image.jpg -o image.webp
SVG:
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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: aj-geddes-useful-ai-prompts-image-optimization 3 description: Image Optimization 4 --- 5 6 # Image Optimization 7 8 ## Table of Contents 9 10 - [Overview](#overview) 11 - [When to Use](#when-to-use) 12 - [Quick Start](#quick-start) 13 - [Reference Guides](#reference-guides) 14 - [Best Practices](#best-practices) 15 16 ## Overview 17 18 Images typically comprise 50% of page weight. Optimization dramatically improves performance, especially on mobile networks. 19 20 ## When to Use 21 22 - Website optimization 23 - Responsive image implementation 24 - Performance improvement 25 - Mobile experience enhancement 26 - Before deployment 27 28 ## Quick Start 29 30 Minimal working example: 31 32 ```yaml 33 Format Selection: 34 35 JPEG: 36 Best for: Photographs, complex images 37 Compression: Lossy (quality 70-85) 38 Size: ~50-70% reduction 39 Tools: ImageMagick, TinyJPEG 40 Command: convert image.jpg -quality 75 optimized.jpg 41 42 PNG: 43 Best for: Icons, screenshots, transparent images 44 Compression: Lossless 45 Size: 10-30% reduction 46 Tools: PNGQuant, OptiPNG 47 Command: optipng -o3 image.png 48 49 WebP: 50 Best for: Modern browsers (90% support) 51 Compression: 25-35% better than JPEG/PNG 52 Fallback: Use <picture> element 53 Tools: cwebp 54 Command: cwebp -q 75 image.jpg -o image.webp 55 56 SVG: 57 Best for: Icons, logos, simple graphics 58 // ... (see reference guides for full implementation) 59 ``` 60 61 ## Reference Guides 62 63 Detailed implementations in the `references/` directory: 64 65 | Guide | Contents | 66 |---|---| 67 | [Image Compression & Formats](references/image-compression-formats.md) | Image Compression & Formats | 68 | [Responsive Images](references/responsive-images.md) | Responsive Images | 69 | [Optimization Process](references/optimization-process.md) | Optimization Process | 70 | [Monitoring & Best Practices](references/monitoring-best-practices.md) | Monitoring & Best Practices | 71 72 ## Best Practices 73 74 ### ✅ DO 75 76 - Follow established patterns and conventions 77 - Write clean, maintainable code 78 - Add appropriate documentation 79 - Test thoroughly before deploying 80 81 ### ❌ DON'T 82 83 - Skip testing or validation 84 - Ignore error handling 85 - Hard-code configuration values 86 87 --- 88 > Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions. 89 <!-- tomevault:4.0:skill_md:2026-04-11 -->
tomevault-io/skills-registry/tree/main/aj-geddes--useful-ai-prompts--image-optimization commit f59e6c64e2
Frequently asked questions How do I install the Aj Geddes Useful AI Prompts Image Optimization skill? Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-image-optimization in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Aj Geddes Useful AI Prompts Image Optimization skill do? Image Optimization It is listed under Coding & Dev Tools on SkillMD.
Is Aj Geddes Useful AI Prompts Image Optimization safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Aj Geddes Useful AI Prompts Image Optimization? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Aj Geddes Useful AI Prompts Image Optimization free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Aj Geddes Useful AI Prompts Image Optimization? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.