image-crop-rotate

Image Crop and Rotate

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-crop-rotate" with this command: npx skills add instavm/coderunner/instavm-coderunner-image-crop-rotate

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

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

use-instavm

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated