---
title: "Crop an image"
method: GET
path: "/images/crop"
tags: ["Image Processing"]
---

# Crop an image

`GET /images/crop`

This endpoint is currently only used to generate cropped logos on Hunger Games from a
base image and cropping coordinates. Cropping coordinates are relative (between 0.
and 1. inclusive), with (0, 0) being the upper left corner.

## Query parameters

- `image_url` string, uri
- `y_min` number
- `x_min` number
- `y_max` number
- `x_max` number

## Response `200`

Cropped image in JPEG format

---

[API](https://skmtc.net/openfoodfacts/apis/api-reference.md) · [All operations](https://skmtc.net/openfoodfacts/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openfoodfacts/api-reference/revisions/23d26c6d55e6/schema)
