Select/crop product image
select_imageSelect a previously uploaded product image and assign it to a field (front, ingredients, etc.) with optional cropping and rotation by specifying coordinates and angle.
Instructions
Select, crop, and rotate a previously uploaded product image on Open Food Facts. Requires OFF_USER_ID and OFF_PASSWORD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lc | No | Language code (default: en) | en |
| x1 | No | Crop: left coordinate | |
| x2 | No | Crop: right coordinate | |
| y1 | No | Crop: top coordinate | |
| y2 | No | Crop: bottom coordinate | |
| angle | No | Rotation angle in degrees | |
| imgid | Yes | Image ID (from upload_image response or product data) | |
| barcode | Yes | Product barcode | |
| imagefield | Yes | Image type to assign this image to |