ImageGear v26.3 - Updated
Developer Guide / How to Work with ... / Image Editor REST API / Specify Multiple Operations
In This Topic
    Specify Multiple Operations
    In This Topic

    If you wish to perform multiple image editting operations on an image in sequence, there is no need to make multiple process requests to the Image Editor REST API. Multiple operations can be specified at once and will be performed in the order they are presented in the request JSON:

    POST /imageGear/api/v1/imageEditors
    Content-Type: application/json
    {
      "input": {
        "source": {
          "fileId": "ek5Zb123oYHSUEVx1bUrVQ"
        },
        "operations": [
          {
            "type": "flip",
            "mode": "horizontal"
          },
          {
            "type": "crop",
            "top": 0,
            "left": 0,
            "width": 100,
            "height": 100
          }
        ]
      },
      "minSecondsAvailable": 60
    }