‹ 首页

image-crop-rotate

@instavm · 收录于 1 周前 · 上游提交 2 个月前

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.

适合你,如果需要快速裁剪和旋转图片

/ 下载安装
image-crop-rotate.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add instavm/coderunner/image-crop-rotate
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- instavm/coderunner/image-crop-rotate
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify instavm/coderunner/image-crop-rotate
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
868GitHub stars
~536最小装载
~1.1K含声明引用
~1.1K文本包总量
镜像托管

怎么用

商店整理自技能原文 · 版本 948095e · 表述以原文为准
它做什么

安装后,Claude 可以裁剪图片到原尺寸的 50%(从中心裁切),然后顺时针旋转 90 度。

什么时候触发

当你要求 Claude 对图片进行中心裁剪、旋转 90 度,或同时进行这两种操作时触发。

装好后可以这样说
Claude 会执行裁剪和旋转。
Claude 会只旋转不裁剪。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 948095e

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/
  1. 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> ```
  1. 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:

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:

  1. Open the input image
  2. Crop it to 50% from the center (e.g., 1000x800 → 500x400)
  3. Rotate the cropped image 90° clockwise (e.g., 500x400 → 400x500)
  4. Save the result to the output path
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。