Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Image Crop Rotate

ASecurity

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.

891 stars
0 votes
0 copies
16 views
Added 12/19/2025
toolspythonbash

Security Analysis

A100/100

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

Scanned 2/12/2026

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

Installs into .claude/skills of the current project.

Are you the author of Image Crop Rotate?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Image Crop Rotate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/instavm-image-crop-rotate/badge)](https://www.skillsdirectory.com/skills/instavm-image-crop-rotate)

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

Download with Pro
Files
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:
   ```bash
   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:**
```bash
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

```bash
# 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

Attribution

instavminstavm
View sourceSee grades on GitHubMore from instavm →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →