Skip to content
Back to skills

Image Process

ASecurity

Image processing tool for compression, background removal/replacement, and upscaling. Invoke when user wants to compress image, remove background, change background, or enlarge image.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 7, 2026
toolsjavascriptjavabashnodeperformance

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill image-process --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Process?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Process
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-image-process/badge)](https://www.skillsdirectory.com/skills/modbender-image-process)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "image-process"
description: "Image processing tool for compression, background removal/replacement, and upscaling. Invoke when user wants to compress image, remove background, change background, or enlarge image."
---

# Image Process Skill

This skill provides image processing capabilities including compression, background removal, background replacement, and upscaling.

## Features

- **Image Compression**: Compress images to reduce file size with adjustable quality
- **Background Removal**: AI-powered background removal using `@imgly/background-removal`
- **Background Replacement**: Replace background with a custom color or another image
- **Image Upscaling**: Enlarge images to bigger dimensions

## Usage

### 1. Compress Image

```javascript
const { compressImage } = require('./index');

const result = await compressImage({
  input: './image.jpg',
  quality: 80,
  output: './compressed.jpg'
});
```

### 2. Remove Background

```javascript
const { removeBackground } = require('./index');

const result = await removeBackground({
  input: './person.jpg',
  output: './person-nobg.png'
});
```

### 3. Replace Background

```javascript
const { replaceBackground } = require('./index');

// Replace with solid color
const result = await replaceBackground({
  input: './person.jpg',
  background: '#ffffff',
  output: './result.jpg'
});

// Replace with another image
const result = await replaceBackground({
  input: './person.jpg',
  background: './background.jpg',
  output: './result.jpg'
});
```

### 4. Upscale Image

```javascript
const { upscaleImage } = require('./index');

// Scale by factor (2x)
const result = await upscaleImage({
  input: './image.jpg',
  scale: 2,
  output: './upscaled.jpg'
});

// Or specify exact dimensions
const result = await upscaleImage({
  input: './image.jpg',
  width: 2000,
  height: 3000,
  output: './upscaled.jpg'
});
```

## Parameters

### compressImage

| Parameter | Type | Description |
|-----------|------|-------------|
| `input` | string | Path to input image |
| `quality` | number | Compression quality (1-100), default 80 |
| `output` | string | Output file path |

### removeBackground

| Parameter | Type | Description |
|-----------|------|-------------|
| `input` | string/Buffer | Path or buffer of input image |
| `output` | string | Output file path (optional) |

### replaceBackground

| Parameter | Type | Description |
|-----------|------|-------------|
| `input` | string | Path to foreground image |
| `background` | string | Hex color (e.g. '#ffffff') or path to background image |
| `output` | string | Output file path |

### upscaleImage

| Parameter | Type | Description |
|-----------|------|-------------|
| `input` | string | Path to input image |
| `scale` | number | Scale factor (e.g. 2 for 2x), default 2 |
| `width` | number | Target width (overrides scale) |
| `height` | number | Target height (overrides scale) |
| `output` | string | Output file path |

## CLI Commands

```bash
# Compress
image-process compress ./photo.jpg -q 80

# Remove background
image-process remove-bg ./person.jpg

# Replace background
image-process replace-bg ./person.jpg "#ffffff"
image-process replace-bg ./person.jpg ./background.jpg

# Upscale
image-process upscale ./photo.jpg -s 2
image-process upscale ./photo.jpg -w 2000 -h 3000
```

## Installation

```bash
cd E:\cvte\skills\image-process
npm install
```

## Dependencies

- `@imgly/background-removal-node` - AI background removal
- `sharp` - High-performance image processing

Files in this skill

  • SKILL.md3.6 KB
  • SKILL_CN.md3.4 KB
  • cli.js3.6 KB
  • index.js7.1 KB
  • package-lock.json31.8 KB
  • package.json629 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.