---
name: border-trim-extend
description: Trim uniform borders from images and extend with the same color or a specified color. Use when asked to "trim border", "remove border and add back", "extend padding", or when uniform borders need to be trimmed then re-added with potentially different sizing.
---
# Border Trim and Extend
Trim uniform borders from images and re-add borders with the same or different color.
## Quick Start
For automatic trim-and-extend with the same border color:
```bash
~/.config/crush/skills/border-trim-extend/scripts/trim_extend.sh