Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Crops images to 50% from center and rotates them 90 degrees clockwise using PIL/Pillow.
Use this skill ↓41% 82%+41 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 9 of 22 without it.
I uploaded `logo.jpeg` to `/mnt/user-data/uploads/`. I need to apply a 50% center crop followed by a 90-degree clockwise rotation. After running the script, where should the finished output file reside?
Places the resulting image file in /mnt/user-data/outputs/
3 of 3 safety checks passed
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.
Identify the input image: Locate the user's uploaded image file in /mnt/user-data/uploads/
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>
Provide the result: Move the processed image to /mnt/user-data/outputs/ and share it with the user
scripts/crop_and_rotate.py
This script performs two operations in sequence:
Usage:
Next to this one in the catalogue, plus more from the same author.