{
  "info": {
    "name": "Drop & Convert API",
    "description": "Seven free image tools. Set the apiKey environment variable and select a local file in each request.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Convert images",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/convert",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "convert"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "webp",
              "type": "text"
            },
            {
              "key": "quality",
              "value": "80",
              "type": "text"
            },
            {
              "key": "maxWidth",
              "value": "1200",
              "type": "text"
            }
          ]
        },
        "description": "Convert between 15 image formats."
      },
      "response": []
    },
    {
      "name": "Compress & resize",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/optimize",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "optimize"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "webp",
              "type": "text"
            },
            {
              "key": "quality",
              "value": "80",
              "type": "text"
            },
            {
              "key": "maxWidth",
              "value": "1200",
              "type": "text"
            }
          ]
        },
        "description": "Re-encode and resize without enlarging."
      },
      "response": []
    },
    {
      "name": "Images to PDF",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/images-to-pdf",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "images-to-pdf"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "quality",
              "value": "80",
              "type": "text"
            }
          ]
        },
        "description": "Combine images in upload order, one image per page."
      },
      "response": []
    },
    {
      "name": "Crop images",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/crop",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "crop"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "png",
              "type": "text"
            },
            {
              "key": "x",
              "value": "0",
              "type": "text"
            },
            {
              "key": "y",
              "value": "0",
              "type": "text"
            },
            {
              "key": "width",
              "value": "100",
              "type": "text"
            },
            {
              "key": "height",
              "value": "100",
              "type": "text"
            }
          ]
        },
        "description": "Extract a pixel rectangle from each image."
      },
      "response": []
    },
    {
      "name": "Rotate & mirror",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/rotate",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "rotate"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "png",
              "type": "text"
            },
            {
              "key": "rotation",
              "value": "90",
              "type": "text"
            },
            {
              "key": "flip",
              "value": "none",
              "type": "text"
            }
          ]
        },
        "description": "Rotate clockwise and optionally mirror horizontally or vertically."
      },
      "response": []
    },
    {
      "name": "Grayscale images",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/grayscale",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "grayscale"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "png",
              "type": "text"
            }
          ]
        },
        "description": "Turn color images into monochrome images."
      },
      "response": []
    },
    {
      "name": "Redact images",
      "request": {
        "method": "POST",
        "url": {
          "raw": "{{baseUrl}}/api/v1/redact",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "redact"
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "files",
              "type": "file",
              "src": [],
              "description": "Select a local image. Repeat this field for a batch."
            },
            {
              "key": "format",
              "value": "png",
              "type": "text"
            },
            {
              "key": "maxWidth",
              "value": "0",
              "type": "text"
            },
            {
              "key": "x",
              "value": "0",
              "type": "text"
            },
            {
              "key": "y",
              "value": "0",
              "type": "text"
            },
            {
              "key": "width",
              "value": "100",
              "type": "text"
            },
            {
              "key": "height",
              "value": "100",
              "type": "text"
            }
          ]
        },
        "description": "Replace one rectangle with opaque black pixels in JPG, PNG or single-page TIFF images. PNG output, original dimensions, no automatic detection."
      },
      "response": []
    }
  ]
}
