Image Optimizer for Openclaw

A high-performance image processing utility for automated compression, resizing, and format conversion using Openclaw Skills.

sa9saq
v1.1.0
Feb 8, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install img-optimizer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install img-optimizer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Image Optimizer?

The Image Optimizer is a comprehensive toolkit for developers and content creators who need to streamline their visual asset workflows. By leveraging Openclaw Skills, this tool integrates deeply with ImageMagick to provide a programmable interface for batch processing images. It handles everything from simple JPEG compression to advanced multi-format conversions, ensuring that every asset is perfectly tailored for its destination without manual intervention.

This utility is particularly effective for teams looking to maintain high web performance standards. By integrating this skill into your environment, you can ensure that images are automatically stripped of unnecessary metadata, resized to optimal dimensions, and converted into modern formats like WebP or AVIF. It provides a bridge between raw media files and optimized production assets using the power of Openclaw Skills.

Image Optimizer Use Cases

  • Reducing high-resolution photos for web-ready performance.
  • Automating the generation of thumbnails and social media Open Graph images.
  • Batch converting legacy PNG or JPEG libraries into modern WebP or AVIF formats.
  • Standardizing image dimensions across large datasets for machine learning or UI components.
  • Integrating automated image optimization into CI/CD pipelines via Openclaw Skills.

How Image Optimizer Works

  1. Analyze the metadata and physical dimensions of source images using identification tools to establish a baseline.
  2. Apply requested transformations such as resizing (preserving aspect ratio) or cropping using gravity-based centering.
  3. Execute compression algorithms targeting specific quality levels or file size limits to optimize storage.
  4. Perform batch operations using shell loops to process entire directories of assets simultaneously.
  5. Output a structured summary report within Openclaw Skills to verify the storage savings and final file statistics.

Image Optimizer Setup

To get started with this skill, ensure you have ImageMagick installed on your system.

For macOS users:

brew install imagemagick

For Ubuntu/Debian users:

sudo apt-get update && sudo apt-get install imagemagick

Optional tools for enhanced compression can be installed via:

# For WebP support
brew install webp
# For PNG optimization
brew install optipng

Once installed, Openclaw Skills can immediately begin invoking these binaries to process your image library.

Image Optimizer Data Schema & Taxonomy

The Image Optimizer provides structured feedback for every operation, allowing you to track optimization efficiency. The results are typically presented in a Markdown table format:

Property Description
File The name of the processed image
Original The file size before optimization
Optimized The file size after processing
Savings The percentage of data reduced

Total savings are aggregated at the end of every batch process managed by Openclaw Skills.

Image Optimizer Advanced Features

  • Animated GIF support with frame-aware resizing and coalescence.
  • Advanced EXIF management to strip privacy-sensitive data while maintaining correct image orientation.
  • Alpha-channel transparency flattening for converting transparent PNGs to flat JPEGs.
  • Smart thumbnailing using centered gravity to ensure subjects remain in frame after cropping.
  • High-performance batch processing logic designed for seamless integration with Openclaw Skills automation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*