Skip to content
Development
Skill

/image-crop-rotate

Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.

From plugin
open-skills
4532 skills

Claude Code

$ npx -y skills add instavm/open-skills --skill image-crop-rotate --agent claude-code

SKILL.md

image-crop-rotate.SKILL.md
name: image-crop-rotate
description: Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.

Image Crop and Rotate

Overview

This skill provides functionality to crop images to 50% of their original size from the center and rotate them 90 degrees clockwise. It uses a reliable Python script with PIL/Pillow for consistent, high-quality image processing.

When to Use This Skill

Use this skill when the user requests:

  • Cropping an image to 50% from the center
  • Rotating an image 90 degrees (clockwise)
  • Both cropping and rotating an image
  • Image processing tasks that combine center cropping with rotation

How to Use This Skill

Overview

The skill provides a single script that performs both operations: cropping to 50% from center and rotating 90 degrees clockwise.

Process

1. **Identify the input image**: Locate the user's uploaded image file in `/mnt/user-data/uploads/`

2. **Execute the script**: Run the `crop_and_rotate.py` script with input and output paths:

   python scripts/crop_and_rotate.py <input_path> <output_path>

3. **Provide the result**: Move the processed image to `/mnt/user-data/outputs/` and share it with the user

Script Details

**`scripts/crop_and_rotate.py`**

This script performs two operations in sequence: 1. Crops the image to 50% of its original size, centered 2. Rotates the cropped image 90 degrees clockwise

**Usage:**

python scripts/crop_and_rotate.py input.jpg output.jpg

**Arguments:**

  • First argument: Path to input image
  • Second argument: Path to save processed image

**Supported formats:** Any format supported by PIL/Pillow (JPEG, PNG, GIF, BMP, TIFF, etc.)

**Output:** The script prints processing details including original size, cropped size, and final size

Example Workflow

# Process an uploaded image
python /mnt/user-data/skills/image-crop-rotate/scripts/crop_and_rotate.py \
    /mnt/user-data/uploads/photo.jpg \
    /mnt/user-data/outputs/photo_processed.jpg

The script will: 1. Open the input image 2. Crop it to 50% from the center (e.g., 1000x800 → 500x400) 3. Rotate the cropped image 90° clockwise (e.g., 500x400 → 400x500) 4. Save the result to the output path

Read more
@instavm
Ships withopen-skills

Anthropic recently announced Skills for Claude - reusable folders with instructions, scripts, and resources that make Claude better at specialized tasks. This tool lets you run these skills entirely on your local machine in a sandboxed environment.

Stars on GitHub

Momentum

stars in total
453
Star history of instavm/open-skills on GitHub, a chart by star-history.com

Other skills on open-skills.

pdf-text-replace

pdf-text-replace

Replace text in fillable PDF forms by updating form field values. This skill should be used when users need to update names,…

@instavm@instavmInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about image-crop-rotate.

Which coding agents can use image-crop-rotate?
image-crop-rotate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.