Skip to content
Back to skills

Crop Image

ASecurity

Crop Image. Crop images by percentage-based coordinates. Triggers: crop image, trim image, resize image, cut image

  • 29 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
documentationbashapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add awesome-genmedia/skills --skill crop-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crop Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crop Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/awesome-genmedia-crop-image/badge)](https://www.skillsdirectory.com/skills/awesome-genmedia-crop-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crop-image
description: "Crop Image. Crop images by percentage-based coordinates. Triggers: crop image, trim image, resize image, cut image"
allowed-tools: Bash(curl *), WebFetch
---

# Crop Image

Crop images using percentage-based coordinates and dimensions. Specify the crop region as percentages of the original image width and height for easy, resolution-independent cropping.

## Quick Start

> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).

```bash
curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/photo.jpg",
      "x_percent": 25,
      "y_percent": 16,
      "width_percent": 50,
      "height_percent": 50,
      "output_format": "png"
    }
  }'
```

## Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| height_percent | number | 100 | Height as percentage of image height (0-100). |
| image_url | string | - | The URL of the image to crop. Max file size: 9.5MB. |
| output_format | string | png | Output format for the cropped image. Options: `png`, `jpg`, `jpeg`, `webp` |
| width_percent | number | 100 | Width as percentage of image width (0-100). |
| x_percent | number | 25 | X coordinate as percentage of image width (0-100). |
| y_percent | number | 16 | Y coordinate as percentage of image height (0-100). |

## Examples

**Center crop to 50%:**
```bash
curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/landscape.jpg",
      "x_percent": 25,
      "y_percent": 25,
      "width_percent": 50,
      "height_percent": 50
    }
  }'
```

**Crop top-left quadrant:**
```bash
curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "crop-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/group-photo.jpg",
      "x_percent": 0,
      "y_percent": 0,
      "width_percent": 50,
      "height_percent": 50,
      "output_format": "jpeg"
    }
  }'
```

## Related Models

- [Rembg](../rembg/) - Remove image backgrounds
- [Each Upscaler](../each-upscaler/) - Upscale image resolution

## Documentation

- [each::labs Docs](https://docs.eachlabs.ai)
- [API Reference](https://docs.eachlabs.ai/api/overview)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.