WordPress AI
Image Optimizer
Optimize your entire image footprint with AI-powered local processing. Compress, convert, resize, rename, and update references in duplicate-first mode.
Local AI processing · New optimized files + old files preserved · Duplicate-first content updates
What this skill does
From comprehensive image diagnostics to safe duplicate-first rollout, this skill automates large image optimization projects.
Comprehensive Image Audit
Scans media library, posts, pages, featured images, builders, and WooCommerce product images for optimization opportunities.
AI-Powered Local Processing
Downloads and processes images locally with ImageMagick, Sharp, or Pillow for compression, conversion, resizing, and renaming.
Automated Upload & URL Updates
Uploads optimized files as new media entries and updates references across duplicates of affected pages/posts/builders.
Safe & Reversible
Original files remain intact and flagged as deprecated, enabling low-risk rollout and rollback support.
What makes this different
This skill does real batch processing, not just recommendations.
| Feature | Typical plugins | AI Image Optimizer |
|---|---|---|
| Optimize existing library in one batch | Queue/manual | Automatic batch workflow |
| SEO filename regeneration | Rare/limited | AI context-driven names |
| Alt text generation | Limited add-ons | Built-in AI generation |
| Update references safely | Partial/manual | Duplicate-first URL updates |
| Preserve originals | Varies | Always preserved |
| Local processing control | Server/plugin constrained | AI editor local pipeline |
How it works
Five-step pipeline from audit to review-ready rollout.
Run Sitewide Image Audit
Scans usage, size, format, dimensions, alt text, and responsive behavior across WordPress content.
Select Optimization Scope
Choose everything, critical images only, homepage first, product images, or another subset.
Process Images Locally
Downloads files and runs compression, WebP conversion, resizing, SEO-friendly renaming, and alt text generation.
Upload and Duplicate
Uploads optimized images as new media entries and updates references in duplicates, not live pages.
Review and Publish
Validate before/after changes and publish only after review approval.
Optimizations performed
Compression
Reduces image weight with tuned quality levels (typically 80-85% JPEG or equivalent WebP settings).
Format Conversion
Converts inefficient JPG/PNG images to WebP where appropriate for substantial size reduction.
Resize Oversized Originals
Downsizes huge originals to practical maximum dimensions while preserving aspect ratio.
SEO-Friendly Renaming
Replaces camera/generic filenames with contextual names based on page usage and intent.
Alt Text Generation
Adds AI-generated descriptive alt text for missing/weak image accessibility metadata.
Responsive Regeneration
Regenerates WordPress image sizes and keeps srcset behavior aligned for responsive delivery.
Issues detected
- Oversized images (5000px originals where 2000px max is enough)
- Inefficient formats (PNG photos, oversized JPGs)
- Missing or weak alt text
- Non-SEO filenames (IMG_1234.jpg, screenshot.png)
- Missing responsive sizes and srcset gaps
- Suboptimal compression quality settings
- Missing lazy loading or width/height attributes
- Orphaned media not referenced by content
Example results
Homepage Hero
Before
homepage-hero.jpg
18.3 MB · JPG
5472 x 3648px
After
homepage-marketing-team-hero.webp
1.2 MB · WebP
2000 x 1333px
Savings: 17.1 MB (93%)
Product Image
Before
IMG_9876.jpg
8.2 MB · JPG
Alt text missing
After
professional-camera-product-photo.webp
620 KB · WebP
AI alt text generated
Savings: 7.6 MB (92%)
Safety model
- Creates new optimized media entries and keeps originals
- Updates URLs in duplicates only
- User review and approval required before publish
- Rollback-ready with preserved old files
- No live-site modifications until approval
- Can run incremental optimization batches
Technical details
ImageMagick
convert input.jpg -resize 2000x -quality 80 output.webp
Sharp (Node.js)
sharp('input.jpg').resize(2000).webp({ quality: 80 }) Pillow (Python)
img.thumbnail((2000, 2000)); img.save('out.webp') Processing workflow
- Download media files from WordPress via Respira MCP.
- Analyze size, format, dimensions, context, and usage priority.
- Process locally: compress, convert, resize, rename, generate alt text.
- Upload optimized files as new media entries and mark old files as deprecated replacements.
- Create duplicates and replace references across posts/pages/builders/products.
- Regenerate WordPress responsive sizes for consistent srcset delivery.
Plugin and CDN detection
Optimization plugins
Detects Smush, ShortPixel, EWWW, Imagify, and Optimole, then recommends compatible run modes or settings adjustments during AI processing.
CDNs
Detects Cloudflare/BunnyCDN-style optimizers and still optimizes source images to reduce origin weight, cost, and fallback payloads.
Honest disclaimer
What this cannot do
- Guarantee perfect visual outcomes for every image
- Fix corrupted image source files
- Optimize CSS-only background image assets
- Process media hosted entirely outside WordPress uploads
- Improve artistic composition or brand art direction
What this can do
- Process hundreds of images in controlled batches
- Cut transfer size dramatically with optimized formats
- Generate cleaner SEO filenames and alt text
- Update references safely via duplicate-first flow
- Preserve originals for rollback and external-link safety
Open source skill definition
Use the public skill files directly in Claude, Codex, Cursor, and other skills-compatible workflows.
View on GitHub Raw SKILL.mdRelated Skills
Community feedback
Community ratings
Rate this skill and share what worked (or what needs to improve).
Community rating
—
/ 5
0 ratings
Community Ratings
Showing: Most helpful
Ship leaner images
without risky live edits
Run high-impact image optimization in batches, review duplicate updates, and publish with confidence.