IM

imagemagick

Open Source General

Powerful image processing tools powered by ImageMagick. Remove backgrounds, resize, convert formats, create ICO/ICNS icons, and batch process images.

imagemagick image-processing background-removal icons resize convert

Quick Install

npm install @openpets/imagemagick
pnpm add @openpets/imagemagick

Available Tools (6)

These tools are available when you install the imagemagick plugin in your AI assistant.

imagemagick-remove-background

Remove background from an image by making a specific color transparent. Commonly used to remove white backgrounds.

imagemagick-trim

Trim transparent or solid color borders from an image, then optionally resize back to original dimensions centered.

imagemagick-resize

Resize an image to specified dimensions.

imagemagick-convert-format

Convert an image to a different format (PNG, JPG, WEBP, ICO, etc.).

imagemagick-create-ico

Create a Windows ICO file with multiple resolutions from a source image.

imagemagick-create-icns

Create a macOS ICNS file from a source image. Requires iconutil (macOS only).

Example Queries

remove the white background from image.png
resize photo.jpg to 800x600
convert logo.png to ICO format
create macOS ICNS icon from icon.png
batch remove backgrounds from all PNGs in ./icons
get info about image.png
trim whitespace from screenshot.png

Usage Scenarios

icon generation

  1. 1 remove background from icon.png with 20% fuzz
  2. 2 create ICO file from icon.png
  3. 3 create ICNS file from icon.png

batch processing

  1. 1 batch remove backgrounds from ./assets/*.png
  2. 2 batch trim all images in ./screenshots

Use imagemagick with Your AI Assistant

This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with imagemagick.

Works with ChatGPT Works with Claude Works with Perplexity MCP Compatible