ImageMagick Operations

Perform image manipulation tasks like background removal, resizing, format conversion, rounding corners, watermarking, and color adjustments using ImageMagic...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
1 · 4k · 28 current installs · 29 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill's name and files match: SKILL.md, README, and the remove-bg script all implement ImageMagick tasks. Minor inconsistency: the registry metadata shown to you listed no required binaries, but skill.json declares requires.bins ["convert"] (and the docs/scripts expect the ImageMagick 'convert' tool). This is expected for an ImageMagick helper but the registry metadata vs. skill.json mismatch is worth noting.
Instruction Scope
SKILL.md instructs only local ImageMagick operations (convert, simple shell loops, and the included remove-bg.sh). The remove-bg.sh script only reads the specified input file, writes the specified output, and reports sizes; it does not access other files, environment secrets, or remote endpoints. Minor doc-script mismatch: SKILL.md describes tolerance as 0-255 while remove-bg.sh treats tolerance as a percentage (used as -fuzz "${TOLERANCE}%").
Install Mechanism
No custom install mechanism or remote downloads are used — SKILL.md and skill.json recommend installing ImageMagick via standard package managers (brew, apt, dnf). This is low-risk and proportionate to the skill's purpose.
Credentials
The skill requests no environment variables or credentials. Its functionality (local image manipulation) does not require secrets, so requested privileges are proportionate.
Persistence & Privilege
always:false and default model invocation are used. The skill does not request any elevated or persistent system-wide privileges and does not modify other skills or system configs.
Assessment
This skill appears to do only local ImageMagick image editing and includes a small bash script for background removal. Before installing/use: 1) Ensure ImageMagick ('convert') is present on PATH as the skill expects. 2) Note the minor docs mismatch: tolerance is used as a percentage in the script (-fuzz N%) though SKILL.md lists 0–255; test with safe images to confirm behavior. 3) If you will process untrusted images, keep ImageMagick up-to-date and consider running processing in an isolated environment — ImageMagick has had remote-code vulnerabilities historically. 4) No network calls or credentials are requested by the skill, so there is no obvious exfiltration vector in the provided files.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97efge0kz3j6mk37avqenk0qs809fkz

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

ImageMagick Moltbot Skill

Comprehensive ImageMagick operations for image manipulation in Moltbot.

Installation

macOS:

brew install imagemagick

Linux:

sudo apt install imagemagick  # Debian/Ubuntu
sudo dnf install ImageMagick  # Fedora

Verify:

convert --version

Available Operations

1. Remove Background (white/solid color → transparent)

./scripts/remove-bg.sh input.png output.png [tolerance] [color]
ParameterDefaultRangeDescription
input.pngSource image
output.pngOutput transparent PNG
tolerance200-255Color matching fuzz factor
color#FFFFFFhexColor to remove

Examples:

./scripts/remove-bg.sh icon.png icon-clean.png              # default white
./scripts/remove-bg.sh icon.png icon-clean.png 30           # loose tolerance
./scripts/remove-bg.sh icon.png icon-clean.png 10 "#000000" # remove black

2. Resize Image

convert input.png -resize 256x256 output.png

3. Convert Format

convert input.png output.webp          # PNG → WebP
convert input.jpg output.png           # JPG → PNG
convert input.png -quality 80 output.jpg  # Compress

4. Rounded Corners (iOS style)

convert input.png -alpha set -virtual pixel transparent \
    -distort viewport 512x512+0+0 \
    -channel A -blur 0x10 -threshold 50% \
    output-rounded.png

5. Add Watermark

convert base.png watermark.png -gravity southeast -composite output.png

6. Batch Thumbnail Generation

for f in *.png; do convert "$f" -resize 128x128 "thumbs/$f"; done

7. Color Adjustments

convert input.png -brightness-contrast 10x0 output.png      # brighter
convert input.png -grayscale output.png                     # grayscale
convert input.png -modulate 100,150,100 output.png          # more saturation

Common Patterns

Flat Icon → Transparent Background

./scripts/remove-bg.sh icon.png icon-clean.png 15

Generate App Icon Set (iOS)

for size in 1024 512 256 128 64 32 16; do
    convert icon.png -resize ${size}x${size} icon-${size}.png
done

Optimize for Web

convert large.png -quality 85 -resize 2000x2000\> optimized.webp

Tips

  • Higher tolerance (20-50): Better for anti-aliased edges, may remove some foreground
  • Lower tolerance (5-15): Preserves detail, may leave color fringes
  • For flat icons: 10-20 usually works best
  • Use -quality for JPEG/WebP compression (0-100)
  • Use -strip to remove metadata for smaller files

Files

4 total
Select a file
Select a file to preview.

Comments

Loading comments…