{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/convertfilefast-com/json-schema/convertfilefast-com-body-compress-image-v2-image-compress-post-schema.json",
  "title": "Body_compress_image_v2_image_compress_post",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/convertfilefast-com-openapi.json#/components/schemas/Body_compress_image_v2_image_compress_post",
  "properties": {
    "file": {
      "anyOf": [
        {
          "type": "string",
          "format": "binary"
        },
        {
          "type": "null"
        }
      ],
      "title": "File",
      "description": "Image file to compress"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "URL of image file to compress"
    },
    "quality": {
      "type": "integer",
      "title": "Quality",
      "description": "Compression quality (1-100, higher = better quality)",
      "default": 85
    },
    "format": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Format",
      "description": "Output format: jpeg, png, webp, etc. Defaults to source format."
    },
    "max_width": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Width",
      "description": "Maximum output width in pixels (downscales proportionally if exceeded)"
    },
    "max_height": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Height",
      "description": "Maximum output height in pixels (downscales proportionally if exceeded)"
    }
  },
  "type": "object"
}