{
  "slug": "image-compress",
  "name": "gizza-ai/image-compress",
  "version": "0.1.0",
  "title": "Compress an Image Online — gizza.ai",
  "description": "Shrink an image's file size right in your browser — re-encode a JPG, PNG, or WebP at a chosen quality, same format out. No upload to a server, runs locally, free.",
  "tags": [
    "image",
    "compress",
    "shrink",
    "optimize",
    "quality",
    "jpg",
    "png",
    "webp",
    "file size"
  ],
  "category": "image",
  "urls": {
    "page": "https://gizza.ai/tools/image-compress/",
    "markdown": "https://gizza.ai/tools/image-compress/index.md",
    "descriptor": "https://gizza.ai/tools/image-compress/tool.json",
    "deep_link_example": "https://gizza.ai/tools/image-compress/?url=https://example.com/input&quality=80"
  },
  "cli": "gizza tool image-compress 'url=https://example.com/input' 'quality=80'",
  "tool": {
    "description": "Compress (re-encode) an image at a chosen quality to shrink its file size, keeping the same format (jpg/png/webp). Provide either url (HTTP/HTTPS) or ref (id from a prior image tool call). Lower quality = smaller file.",
    "parameters": {
      "oneOf": [
        {
          "required": [
            "url"
          ]
        },
        {
          "required": [
            "ref"
          ]
        }
      ],
      "properties": {
        "quality": {
          "description": "Output quality 1-100 (default 80). Lower = smaller file.",
          "maximum": 100,
          "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). PNG, JPEG, or WebP.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}