{
  "x402Version": 2,
  "id": 5122,
  "slug": "5122",
  "resource": "https://imagcon.app/routes/x402/resize-image",
  "description": "Resize any image to exact dimensions or social-media presets — Open Graph (1200x630), Twitter card, YouTube thumbnail, Instagram, LinkedIn. Smart fit modes avoid distortion: cover (focal-point crop), contain (padded), blur-fill letterbox, stretch. Deterministic and instant — no AI, no account required. Returns the resized PNG/JPEG/WebP directly. Images from generate-image resize free at /routes/x402/resize-generated (pass your image_key).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1f2A484ef654d49c58c625b09e78B538501D652D",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "image": "<binary PNG/JPEG/WebP file>",
            "mode": "blur",
            "preset": "og"
          },
          "bodyType": "form-data",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "note": "image/png resized image bytes"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "background_color": {
                    "description": "Hex background for contain mode (default #ffffff)",
                    "type": "string"
                  },
                  "focal": {
                    "description": "Crop anchor for cover mode",
                    "enum": [
                      "center",
                      "top",
                      "bottom",
                      "left",
                      "right"
                    ],
                    "type": "string"
                  },
                  "format": {
                    "description": "Output format (default png)",
                    "enum": [
                      "png",
                      "jpeg",
                      "webp"
                    ],
                    "type": "string"
                  },
                  "height": {
                    "description": "Target height in pixels",
                    "type": "integer"
                  },
                  "image": {
                    "description": "Source image file",
                    "format": "binary",
                    "type": "string"
                  },
                  "mode": {
                    "description": "Fit mode (default cover; blur recommended for OG images)",
                    "enum": [
                      "cover",
                      "contain",
                      "blur",
                      "stretch"
                    ],
                    "type": "string"
                  },
                  "preset": {
                    "description": "Social/OG preset (wins over width/height)",
                    "enum": [
                      "github-social",
                      "instagram-portrait",
                      "instagram-square",
                      "instagram-story",
                      "linkedin-post",
                      "og",
                      "twitter-card",
                      "twitter-header",
                      "youtube-thumbnail"
                    ],
                    "type": "string"
                  },
                  "quality": {
                    "description": "JPEG/WebP quality 1-100 (default 90)",
                    "type": "integer"
                  },
                  "width": {
                    "description": "Target width in pixels",
                    "type": "integer"
                  }
                },
                "required": [
                  "image"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "imagcon.app",
  "lastUpdated": "2026-08-29T16:20:52.998Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-29T16:20:52.649Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "imagcon.app",
    "manifest_name": "imagcon.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}