Image Center Crop & 90° Rotate
A Python/Pillow skill that crops an image to 50% from the center and rotates it 90 degrees clockwise in one command.
Image & VideoBeginner★ 893⑂ 41AI score 7/10Last updated: Aug 13, 2026
What it does
- Crops the image to 50% of its original size, centered (e.g. 1000x800 → 500x400).
- Rotates the cropped result 90° clockwise (e.g. 500x400 → 400x500).
- Runs both steps through a single script,
scripts/crop_and_rotate.py, printing original, cropped and final dimensions. - Works with any format Pillow supports: JPEG, PNG, GIF, BMP, TIFF and more.
Who it's for
- Anyone producing thumbnails or social images that always need the same crop-and-turn treatment.
- Developers who want a minimal reference for a script-backed Claude Code skill.
- People fixing the orientation and framing of batches of photos or scans.
Examples
- "Crop just the middle of this photo and turn it portrait" — the skill triggers and returns the processed file.
- Direct CLI use:
python scripts/crop_and_rotate.py photo.jpg photo_processed.jpg. - Prepping scanned pages: keep the central region and correct the rotation before passing them to an OCR step.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/instavm/coderunner/HEAD/skills/public/image-crop-rotate/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/public/image-crop-rotate folder from the GitHub repo instavm/coderunner into my ~/.claude/skills/image-crop-rotate/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/instavm/coderunner.git /tmp/coderunner && mkdir -p ~/.claude/skills && cp -r /tmp/coderunner/skills/public/image-crop-rotate ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/instavm/coderunner.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r coderunner/skills/public/image-crop-rotate ~/.claude/skills/ - Make sure Pillow is available:
pip install pillow - Restart Claude Code and ask: "crop this image to 50% from the center and rotate it 90 degrees".
- Find the processed file at the output path the skill reports (e.g.
/mnt/user-data/outputs/) or the path you passed to the script.
View source on GitHub ↗License: Apache-2.0