{
  "title": "Image Compressor",
  "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": "Image Compressor\nMake your image smaller, or fit a file-size limit. Check the quality before you download.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Compress image\nChoose a still JPG, PNG or WebP image. It stays in this browser.\nChoose quality and output format. Enter an optional maximum size in KB; allow smaller dimensions only if you want resizing when needed.\nCompress, then compare image detail, actual file size and dimensions. If a limit cannot be met, adjust the settings and retry.\nUseful next steps\nResize image\nCompress image to 100kb\nJPG to WEBP\nWhat to expect\nReduce an image’s file size, with an optional maximum size in KB. Choose WebP or JPEG, then compare image detail and actual file size. Dimensions change only if you allow it. If compression would make a file larger and no size limit is set, the download is the unchanged original, including its metadata.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Resize image",
      "url": "https://happytails.ai/en/image-tools/resize-image/"
    },
    {
      "name": "Compress image to 100kb",
      "url": "https://happytails.ai/en/image-tools/compress-image-to-100kb/"
    },
    {
      "name": "JPG to WEBP",
      "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,
          "help": "With a size limit, quality may be reduced below this value."
        },
        {
          "key": "format",
          "label": "Output format",
          "value": "WebP",
          "type": "select",
          "values": [
            "WebP",
            "JPEG"
          ]
        },
        {
          "key": "background",
          "label": "JPEG background",
          "value": "#ffffff",
          "type": "color"
        },
        {
          "key": "targetKB",
          "label": "Maximum file size (KB)",
          "value": "",
          "type": "number",
          "min": 1,
          "max": 20000,
          "step": 1,
          "required": false,
          "help": "Optional. Leave blank to compress without a size limit. 1 KB = 1,000 bytes."
        },
        {
          "key": "allowResize",
          "label": "Allow smaller dimensions",
          "value": false,
          "type": "checkbox",
          "help": "Only reduce dimensions if the size limit cannot be met at the original size."
        }
      ],
      "files": true,
      "input": false,
      "multiple": false,
      "accept": ".jpg,.jpeg,.png,.webp",
      "maxFileBytes": 20971520,
      "deferImagePreview": true,
      "note": "Runs in your browser. One still JPEG, PNG or WebP, up to 20 MiB and 40 megapixels. Animated images are not supported. New copies do not preserve metadata; an unchanged original keeps its metadata. Smaller dimensions are used only with your permission.",
      "experience": {
        "automatic": false,
        "single": false,
        "inputMaxLength": 1000000,
        "inputMode": "text",
        "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": "# Image Compressor\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. One still JPEG, PNG or WebP, up to 20 MiB and 40 megapixels. Animated images are not supported. New copies do not preserve metadata; an unchanged original keeps its metadata. Smaller dimensions are used only with your permission.\n\n### Inputs and settings\n\nNo free-text input is required. Use the file inputs and/or settings below.\n\nAccepted browser files: `.jpg,.jpeg,.png,.webp`. Choose one file.\n\nBrowser file-input limit: 20971520 bytes in total. HTTP limits can differ.\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| `targetKB` | Maximum file size (KB) | number | \"\" | min=1 max=20000 step=1 |\n| `allowResize` | Allow smaller dimensions | checkbox | false |  |\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        \"help\": \"With a size limit, quality may be reduced below this value.\"\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        \"key\": \"targetKB\",\n        \"label\": \"Maximum file size (KB)\",\n        \"value\": \"\",\n        \"type\": \"number\",\n        \"min\": 1,\n        \"max\": 20000,\n        \"step\": 1,\n        \"required\": false,\n        \"help\": \"Optional. Leave blank to compress without a size limit. 1 KB = 1,000 bytes.\"\n      },\n      {\n        \"key\": \"allowResize\",\n        \"label\": \"Allow smaller dimensions\",\n        \"value\": false,\n        \"type\": \"checkbox\",\n        \"help\": \"Only reduce dimensions if the size limit cannot be met at the original size.\"\n      }\n    ],\n    \"files\": true,\n    \"input\": false,\n    \"multiple\": false,\n    \"accept\": \".jpg,.jpeg,.png,.webp\",\n    \"maxFileBytes\": 20971520,\n    \"deferImagePreview\": true,\n    \"note\": \"Runs in your browser. One still JPEG, PNG or WebP, up to 20 MiB and 40 megapixels. Animated images are not supported. New copies do not preserve metadata; an unchanged original keeps its metadata. Smaller dimensions are used only with your permission.\",\n    \"experience\": {\n      \"automatic\": false,\n      \"single\": false,\n      \"inputMaxLength\": 1000000,\n      \"inputMode\": \"text\",\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\nMake your image smaller, or fit a file-size limit. Check the quality before you download.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Compress image\n\n1. Choose a still JPG, PNG or WebP image. It stays in this browser.\n2. Choose quality and output format. Enter an optional maximum size in KB; allow smaller dimensions only if you want resizing when needed.\n3. Compress, then compare image detail, actual file size and dimensions. If a limit cannot be met, adjust the settings and retry.\n\n## Useful next steps\n\n- [Resize image](https://happytails.ai/en/image-tools/resize-image/) ([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/) ([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/) ([Markdown](https://happytails.ai/en/image-tools/jpg-to-webp.md))\n\n## What to expect\n\nReduce an image’s file size, with an optional maximum size in KB. Choose WebP or JPEG, then compare image detail and actual file size. Dimensions change only if you allow it. If compression would make a file larger and no size limit is set, the download is the unchanged original, including its metadata.\n"
}