{
  "slug": "image-resize",
  "name": "gizza-ai/image-resize",
  "version": "0.1.0",
  "title": "Resize an Image Online — gizza.ai",
  "description": "Resize any image right in your browser — set a width and/or height, pick a fit mode. No upload to a server, runs locally, free.",
  "tags": [
    "image",
    "resize",
    "scale",
    "thumbnail",
    "dimensions"
  ],
  "category": "image",
  "urls": {
    "page": "https://gizza.ai/tools/image-resize/",
    "markdown": "https://gizza.ai/tools/image-resize/index.md",
    "descriptor": "https://gizza.ai/tools/image-resize/tool.json",
    "deep_link_example": "https://gizza.ai/tools/image-resize/?url=https://example.com/input&width=640&fit=contain"
  },
  "cli": "gizza tool image-resize 'url=https://example.com/input' 'width=640' 'fit=contain'",
  "tool": {
    "description": "Resize an image. Provide either url (HTTP/HTTPS) or ref (id from a prior image tool call).",
    "parameters": {
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "fit": {
          "description": "Resize mode (default: contain).",
          "enum": [
            "contain",
            "cover",
            "stretch"
          ],
          "type": "string"
        },
        "height": {
          "description": "Target height in pixels.",
          "minimum": 1,
          "type": "integer"
        },
        "ref": {
          "description": "Reference id from a prior image tool call (e.g. \"call_42\"). Use either url or ref.",
          "type": "string"
        },
        "url": {
          "description": "Image URL (HTTP/HTTPS).",
          "type": "string"
        },
        "width": {
          "description": "Target width in pixels.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}