image-crop-rotate

Solid

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.

AI & Automation 844 stars 39 forks Updated 3 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
97
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 f...

Details

Author
instavm
Repository
instavm/coderunner
Created
11 months ago
Last Updated
3 weeks ago
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category