Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 148% | 0% |
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.
Use this skill when the user requests:
The skill provides a single script that performs both operations: cropping to 50% from center and rotating 90 degrees clockwise.
/mnt/user-data/uploads/crop_and_rotate.py script with input and output paths:bash python scripts/crop_and_rotate.py <input_path> <output_path>
/mnt/user-data/outputs/ and share it with the userscripts/crop_and_rotate.py
This script performs two operations in sequence:
Usage:
bashpython scripts/crop_and_rotate.py input.jpg output.jpg
Arguments:
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
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:
Other measured skills in the registry, with their headline benchmark lift.