Select/crop product image
select_imageSelect, crop, and rotate an uploaded product image on Open Food Facts by providing barcode, image ID, and field type. Adjust rotation angle and crop coordinates to assign the image to front, ingredients, nutrition, packaging, or other.
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 |
|---|---|---|---|
| barcode | Yes | Product barcode | |
| imgid | Yes | Image ID (from upload_image response or product data) | |
| imagefield | Yes | Image type to assign this image to | |
| lc | No | Language code (default: en) | en |
| angle | No | Rotation angle in degrees | |
| x1 | No | Crop: left coordinate | |
| y1 | No | Crop: top coordinate | |
| x2 | No | Crop: right coordinate | |
| y2 | No | Crop: bottom coordinate |