{
  "title": "Compress image",
  "human_url": "https://happytails.ai/en/image-tools/compress-image/",
  "agent_url": "https://happytails.ai/agents/en/image-tools/compress-image/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/image-tools/compress-image.md",
  "content": "Compress image\nReduce an image’s file size with adjustable quality and format.\nUseful next steps\nResize image\nResize an image to the dimensions you need.\nCompress image to 100kb\nCreate a smaller image with a target size of 100 KB.\nJPG to WEBP\nConvert a JPG image to WEBP in your browser.\nHow to use Compress image\nChoose a file in an image format your browser can open.\nReview the settings, then choose Compress image.\nReview the result, then use Copy result or a download link when available.\nWhat to expect\nReduce an image’s file size with adjustable quality and format. Choose WebP or JPEG, compare the result with your original, and download the version that works for you. Small, already optimized files may become larger.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Resize image Resize an image to the dimensions you need.",
      "url": "https://happytails.ai/en/image-tools/resize-image/"
    },
    {
      "name": "Compress image to 100kb Create a smaller image with a target size of 100 KB.",
      "url": "https://happytails.ai/en/image-tools/compress-image-to-100kb/"
    },
    {
      "name": "JPG to WEBP Convert a JPG image to WEBP in your browser.",
      "url": "https://happytails.ai/en/image-tools/jpg-to-webp/"
    }
  ],
  "tool": {
    "id": "compress-image",
    "category": "image-tools",
    "built": true,
    "requirements": "Show before/after bytes and preview; preserve original download; never guarantee all files shrink.",
    "implementation": {
      "fields": [
        {
          "key": "quality",
          "label": "Quality (%)",
          "value": 85,
          "type": "number",
          "min": 1,
          "max": 100,
          "step": 1
        },
        {
          "key": "format",
          "label": "Output format",
          "value": "WebP",
          "type": "select",
          "values": [
            "WebP",
            "JPEG"
          ]
        },
        {
          "key": "background",
          "label": "JPEG background",
          "value": "#ffffff",
          "type": "color"
        }
      ],
      "files": true,
      "accept": "image/*,.svg,.avif",
      "input": false,
      "note": "Runs in your browser. Animated inputs produce a single still image. Supported decoding depends on your browser.",
      "experience": {
        "automatic": false,
        "single": false,
        "label": "Your text",
        "placeholder": "Type or paste your input…",
        "help": "Up to 1,000,000 characters. Review the settings before running.",
        "action": "Compress image"
      },
      "mode": "explicit",
      "interactive": false
    },
    "execution": "Browser interface",
    "api": null,
    "browser_agent": {
      "supported": true,
      "name": "run_current_tool",
      "discovery": "WebMCP on the human page in a supporting browser",
      "verification": "See audit/API-AUDIT.md; availability is not verification"
    }
  },
  "markdown": "# Compress image\n\n- Human page: https://happytails.ai/en/image-tools/compress-image/\n- Markdown: https://happytails.ai/en/image-tools/compress-image.md\n- Structured JSON: https://happytails.ai/agents/en/image-tools/compress-image/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `compress-image` |\n| Category | image-tools |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Use the visible action or interactive controls. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nRuns in your browser. Animated inputs produce a single still image. Supported decoding depends on your browser.\n\n### Inputs and settings\n\nNo free-text input is required. Use the file inputs and/or settings below.\n\nAccepted browser files: `image/*,.svg,.avif`. Choose one file.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `quality` | Quality (%) | number | 85 | min=1 max=100 step=1 |\n| `format` | Output format | select | \"WebP\" | Allowed: WebP, JPEG |\n| `background` | JPEG background | color | \"#ffffff\" |  |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nShow before/after bytes and preview; preserve original download; never guarantee all files shrink.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"compress-image\",\n  \"category\": \"image-tools\",\n  \"built\": true,\n  \"requirements\": \"Show before/after bytes and preview; preserve original download; never guarantee all files shrink.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"quality\",\n        \"label\": \"Quality (%)\",\n        \"value\": 85,\n        \"type\": \"number\",\n        \"min\": 1,\n        \"max\": 100,\n        \"step\": 1\n      },\n      {\n        \"key\": \"format\",\n        \"label\": \"Output format\",\n        \"value\": \"WebP\",\n        \"type\": \"select\",\n        \"values\": [\n          \"WebP\",\n          \"JPEG\"\n        ]\n      },\n      {\n        \"key\": \"background\",\n        \"label\": \"JPEG background\",\n        \"value\": \"#ffffff\",\n        \"type\": \"color\"\n      }\n    ],\n    \"files\": true,\n    \"accept\": \"image/*,.svg,.avif\",\n    \"input\": false,\n    \"note\": \"Runs in your browser. Animated inputs produce a single still image. Supported decoding depends on your browser.\",\n    \"experience\": {\n      \"automatic\": false,\n      \"single\": false,\n      \"label\": \"Your text\",\n      \"placeholder\": \"Type or paste your input…\",\n      \"help\": \"Up to 1,000,000 characters. Review the settings before running.\",\n      \"action\": \"Compress image\"\n    },\n    \"mode\": \"explicit\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nReduce an image’s file size with adjustable quality and format.\n\n## Useful next steps\n\n- [Resize image](https://happytails.ai/en/image-tools/resize-image/): Resize an image to the dimensions you need. ([Markdown](https://happytails.ai/en/image-tools/resize-image.md))\n\n- [Compress image to 100kb](https://happytails.ai/en/image-tools/compress-image-to-100kb/): Create a smaller image with a target size of 100 KB. ([Markdown](https://happytails.ai/en/image-tools/compress-image-to-100kb.md))\n\n- [JPG to WEBP](https://happytails.ai/en/image-tools/jpg-to-webp/): Convert a JPG image to WEBP in your browser. ([Markdown](https://happytails.ai/en/image-tools/jpg-to-webp.md))\n\n## How to use Compress image\n\n1. Choose a file in an image format your browser can open.\n2. Review the settings, then choose Compress image.\n3. Review the result, then use Copy result or a download link when available.\n\n## What to expect\n\nReduce an image’s file size with adjustable quality and format. Choose WebP or JPEG, compare the result with your original, and download the version that works for you. Small, already optimized files may become larger.\n"
}