{"id":"image-crop-rotate","name":"image-crop-rotate","summary":"画像処理スキル:画像を中心から50%にトリミングし、時計回りに90度回転させる技術。このスキルは、ユーザーが画像ファイルを中央にトリミングしたり、画像の回転や両方の操作を組み合わせたりする際に活用すべきです。","body":"# Image Crop and Rotate\n\n## Overview\n\nThis 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.\n\n## When to Use This Skill\n\nUse this skill when the user requests:\n- Cropping an image to 50% from the center\n- Rotating an image 90 degrees (clockwise)\n- Both cropping and rotating an image\n- Image processing tasks that combine center cropping with rotation\n\n## How to Use This Skill\n\n### Overview\n\nThe skill provides a single script that performs both operations: cropping to 50% from center and rotating 90 degrees clockwise.\n\n### Process\n\n1. **Identify the input image**: Locate the user's uploaded image file in `/mnt/user-data/uploads/`\n\n2. **Execute the script**: Run the `crop_and_rotate.py` script with input and output paths:\n   ```bash\n   python scripts/crop_and_rotate.py <input_path> <output_path>\n   ```\n\n3. **Provide the result**: Move the processed image to `/mnt/user-data/outputs/` and share it with the user\n\n### Script Details\n\n**`scripts/crop_and_rotate.py`**\n\nThis script performs two operations in sequence:\n1. Crops the image to 50% of its original size, centered\n2. Rotates the cropped image 90 degrees clockwise\n\n**Usage:**\n```bash\npython scripts/crop_and_rotate.py input.jpg output.jpg\n```\n\n**Arguments:**\n- First argument: Path to input image\n- Second argument: Path to save processed image\n\n**Supported formats:** Any format supported by PIL/Pillow (JPEG, PNG, GIF, BMP, TIFF, etc.)\n\n**Output:** The script prints processing details including original size, cropped size, and final size\n\n### Example Workflow\n\n```bash\n# Process an uploaded image\npython /mnt/user-data/skills/image-crop-rotate/scripts/crop_and_rotate.py \\\n    /mnt/user-data/uploads/photo.jpg \\\n    /mnt/user-data/outputs/photo_processed.jpg\n```\n\nThe script will:\n1. Open the input image\n2. Crop it to 50% from the center (e.g., 1000x800 → 500x400)\n3. Rotate the cropped image 90° clockwise (e.g., 500x400 → 400x500)\n4. Save the result to the output path","author":"@instavm","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/instavm/coderunner/tree/main/skills/public/image-crop-rotate","license":"Apache-2.0","category":"coding","lang":"en","tokens":510,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"scripts/crop_and_rotate.py","size":2610,"sha256":"598afaa42a3a765aa5621f6145b945b371f6852fada7aac5c2f144e92cd73866"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":true,"networkEndpoints":[]}}