image-crop-rotate
Automated center-cropping and 90-degree rotation for image files.
Install
mkdir -p .claude/skills/image-crop-rotate && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8597" && unzip -o skill.zip -d .claude/skills/image-crop-rotate && rm skill.zipInstalls to .claude/skills/image-crop-rotate
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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.Key capabilities
- →Crop images to 50% from center
- →Rotate images 90 degrees clockwise
- →Combine crop and rotate operations
- →Process multiple image formats via PIL
How it works
The script opens an image using PIL, calculates the center crop dimensions, performs the crop, rotates the result, and saves the file.
Inputs & outputs
When to use image-crop-rotate
- →Crop an image to 50% from center
- →Rotate an image 90 degrees clockwise
- →Perform batch processing with crop and rotation
- →Resize and orient images for consistent display
About this skill
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
-
Identify the input image: Locate the user's uploaded image file in
/mnt/user-data/uploads/ -
Execute the script: Run the
crop_and_rotate.pyscript with input and output paths:python scripts/crop_and_rotate.py <input_path> <output_path> -
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:
- Crops the image to 50% of its original size, centered
- 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:
- Open the input image
- Crop it to 50% from the center (e.g., 1000x800 → 500x400)
- Rotate the cropped image 90° clockwise (e.g., 500x400 → 400x500)
- Save the result to the output path
When not to use it
- →Complex image manipulation tasks
- →Non-standard image aspect ratio requirements
Prerequisites
Limitations
- →Fixed 50% crop ratio
- →Fixed 90-degree clockwise rotation
How it compares
It provides a standardized, repeatable script for specific geometric transformations rather than manual editing in GUI software.
Compared to similar skills
image-crop-rotate side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| image-crop-rotate (this skill) | 0 | 10mo | Review | Beginner |
| gemini-logo-remover | 9 | 8mo | Review | Beginner |
| slack-gif-creator | 6 | 3mo | Review | Intermediate |
| sora | 2 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by instavm
View all by instavm →You might also like
gemini-logo-remover
bear2u
Remove Gemini logos, watermarks, or AI-generated image markers using OpenCV inpainting. Use this skill when the user asks to remove Gemini logo, AI watermark, or any logo/watermark from images.
slack-gif-creator
anthropics
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."
sora
davila7
Use when the user asks to generate, remix, poll, list, download, or delete Sora videos via OpenAI’s video API using the bundled CLI (`scripts/sora.py`), including requests like “generate AI video,” “Sora,” “video remix,” “download video/thumbnail/spritesheet,” and batch video generation; requires `OPENAI_API_KEY` and Sora API access.
post-process-logo
tradingstrategy-ai
Post-process original logos into standardised 256x256 PNG format
compress_image
CoderWanFeng
压缩图片文件大小,通过调整质量参数控制输出体积。当用户提到压缩图片、图片减肥、缩小图片体积、降低图片质量时使用。
milimo-storyboard-analyst
mainza-ai
Expertise in the Milimo Video Storyboard pipeline, from script parsing (Regex vs AI via Gemma) to generating concept art thumbnails and handling the Smart Element Matching engine. Use this when debugging storyboard extraction, prompt generation for chained video chunks, or modifying the scene/shot h