Images
Select and Crop Image
Changed onCropping is only relevant for editing existing products. You cannot crop an image the first time you upload it to the system.
post/cgi/product_image_crop.pl
Request
- Base URLhttps://world.openfoodfacts.net
- AuthAPI key in header User-Agent
Request body multipart/form-data
Example request
{
"code": "04963406",
"imgid": 2,
"id": "front_en",
"x2": 145,
"y2": 145,
"normalize": "false"
}Response
OK
Example response
{
"status": "status ok",
"imgid": 2
}Changes
- breaking
added to the request body
allOflist - breaking
the response's body type changed from no type to
objectfor status - warning
removed from the request body
allOflist
3 more changes in this revision
- breaking