{
  "x402Version": 2,
  "id": 41614,
  "slug": "41614",
  "resource": "https://wasm-geotiff-transcoder.jannioura.workers.dev/",
  "description": "Decodes a GeoTIFF/COG (https URL or inline base64), reads the selected RGB bands via windowed overview reads, applies a tone-map stretch, and returns a PNG/WebP plus georeference metadata (CRS, bounds, pixel scale) and source stats. Limits: 20 MB source, 2048 px output width. Billed per attempt: payment settles after structural validation, before decode, so decode-time failures (e.g. a bands_rgb band the source lacks) are still charged.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x86256e25d4e5511eb6dcc474a4e779970267e903",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "30000",
      "amountUsd": 0.03,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "compute_ms": {
            "type": "integer"
          },
          "format": {
            "enum": [
              "webp",
              "png"
            ],
            "type": "string"
          },
          "georef": {
            "properties": {
              "bounds_wgs84": {
                "description": "[west, south, east, north] in WGS84 degrees; null when the source CRS is unknown.",
                "items": {
                  "type": "number"
                },
                "maxItems": 4,
                "minItems": 4,
                "type": [
                  "array",
                  "null"
                ]
              },
              "crs": {
                "examples": [
                  "EPSG:32610"
                ],
                "type": "string"
              },
              "pixel_scale_m": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "height_px": {
            "type": "integer"
          },
          "image_base64": {
            "contentEncoding": "base64",
            "type": "string"
          },
          "source_stats": {
            "properties": {
              "bands": {
                "type": "integer"
              },
              "bit_depth": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "compression": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "width_px": {
            "type": "integer"
          }
        },
        "required": [
          "image_base64",
          "format",
          "width_px",
          "height_px",
          "georef",
          "source_stats",
          "compute_ms"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "source": "https://raw.githubusercontent.com/OSGeo/gdal/master/autotest/gcore/data/rgbsmall.tif"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "compute_ms": 265,
            "format": "webp",
            "georef": {
              "bounds_wgs84": null,
              "crs": "unknown",
              "pixel_scale_m": null
            },
            "height_px": 50,
            "image_base64": "UklGRiQEAABXRUJQVlA4IBgEAAAQEgCdASoyADIAPpE2lkeloqIhLB1dmLASCWYAxQtZAFmintnO9achAm2pQoMw6sdjHVR3y7ofs4aob0j/RNbraNG3fPRy7ep+BHOouJ3TZAKLVvBLojCiXL0ZUp5Pkb0I2rOF...",
            "source_stats": {
              "bands": 3,
              "bit_depth": 8,
              "compression": "deflate"
            },
            "width_px": 50
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "oneOf": [
                  {
                    "required": [
                      "source"
                    ]
                  },
                  {
                    "required": [
                      "or_base64_body"
                    ]
                  }
                ],
                "properties": {
                  "bands_rgb": {
                    "default": [
                      1,
                      2,
                      3
                    ],
                    "description": "1-based band indices mapped to R, G, B output channels. Whether an index is valid can only be known after the source is fetched and decoded (its real band count isn't knowable in advance), so a mismatch here still incurs the charge -- see the top-level description.",
                    "items": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "maxItems": 3,
                    "minItems": 3,
                    "type": "array"
                  },
                  "max_width_px": {
                    "default": 2048,
                    "maximum": 2048,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "or_base64_body": {
                    "contentEncoding": "base64",
                    "description": "Inline base64-encoded GeoTIFF bytes. Exactly one of `source` or `or_base64_body` must be provided.",
                    "type": "string"
                  },
                  "output_format": {
                    "default": "webp",
                    "enum": [
                      "webp",
                      "png"
                    ],
                    "type": "string"
                  },
                  "source": {
                    "description": "https URL of the GeoTIFF/COG to transcode. Exactly one of `source` or `or_base64_body` must be provided.",
                    "format": "uri",
                    "type": "string"
                  },
                  "stretch": {
                    "default": "percentile_2_98",
                    "enum": [
                      "none",
                      "percentile_2_98"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "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": {
                "properties": {
                  "compute_ms": {
                    "type": "integer"
                  },
                  "format": {
                    "enum": [
                      "webp",
                      "png"
                    ],
                    "type": "string"
                  },
                  "georef": {
                    "properties": {
                      "bounds_wgs84": {
                        "description": "[west, south, east, north] in WGS84 degrees; null when the source CRS is unknown.",
                        "items": {
                          "type": "number"
                        },
                        "maxItems": 4,
                        "minItems": 4,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "crs": {
                        "examples": [
                          "EPSG:32610"
                        ],
                        "type": "string"
                      },
                      "pixel_scale_m": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "height_px": {
                    "type": "integer"
                  },
                  "image_base64": {
                    "contentEncoding": "base64",
                    "type": "string"
                  },
                  "source_stats": {
                    "properties": {
                      "bands": {
                        "type": "integer"
                      },
                      "bit_depth": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "compression": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "width_px": {
                    "type": "integer"
                  }
                },
                "required": [
                  "image_base64",
                  "format",
                  "width_px",
                  "height_px",
                  "georef",
                  "source_stats",
                  "compute_ms"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_lfdx963d"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "wasm-geotiff-transcoder.jannioura.workers.dev",
  "lastUpdated": "2026-09-24T18:05:59.469Z",
  "quality": {
    "calls30d": 7,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-24T18:05:59.227Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "source": "https://raw.githubusercontent.com/OSGeo/gdal/master/autotest/gcore/data/rgbsmall.tif"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "compute_ms": 265,
              "format": "webp",
              "georef": {
                "bounds_wgs84": null,
                "crs": "unknown",
                "pixel_scale_m": null
              },
              "height_px": 50,
              "image_base64": "UklGRiQEAABXRUJQVlA4IBgEAAAQEgCdASoyADIAPpE2lkeloqIhLB1dmLASCWYAxQtZAFmintnO9achAm2pQoMw6sdjHVR3y7ofs4aob0j/RNbraNG3fPRy7ep+BHOouJ3TZAKLVvBLojCiXL0ZUp5Pkb0I2rOF...",
              "source_stats": {
                "bands": 3,
                "bit_depth": 8,
                "compression": "deflate"
              },
              "width_px": 50
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "oneOf": [
                    {
                      "required": [
                        "source"
                      ]
                    },
                    {
                      "required": [
                        "or_base64_body"
                      ]
                    }
                  ],
                  "properties": {
                    "bands_rgb": {
                      "default": [
                        1,
                        2,
                        3
                      ],
                      "description": "1-based band indices mapped to R, G, B output channels. Whether an index is valid can only be known after the source is fetched and decoded (its real band count isn't knowable in advance), so a mismatch here still incurs the charge -- see the top-level description.",
                      "items": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "maxItems": 3,
                      "minItems": 3,
                      "type": "array"
                    },
                    "max_width_px": {
                      "default": 2048,
                      "maximum": 2048,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "or_base64_body": {
                      "contentEncoding": "base64",
                      "description": "Inline base64-encoded GeoTIFF bytes. Exactly one of `source` or `or_base64_body` must be provided.",
                      "type": "string"
                    },
                    "output_format": {
                      "default": "webp",
                      "enum": [
                        "webp",
                        "png"
                      ],
                      "type": "string"
                    },
                    "source": {
                      "description": "https URL of the GeoTIFF/COG to transcode. Exactly one of `source` or `or_base64_body` must be provided.",
                      "format": "uri",
                      "type": "string"
                    },
                    "stretch": {
                      "default": "percentile_2_98",
                      "enum": [
                        "none",
                        "percentile_2_98"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "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": {
                  "properties": {
                    "compute_ms": {
                      "type": "integer"
                    },
                    "format": {
                      "enum": [
                        "webp",
                        "png"
                      ],
                      "type": "string"
                    },
                    "georef": {
                      "properties": {
                        "bounds_wgs84": {
                          "description": "[west, south, east, north] in WGS84 degrees; null when the source CRS is unknown.",
                          "items": {
                            "type": "number"
                          },
                          "maxItems": 4,
                          "minItems": 4,
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "crs": {
                          "examples": [
                            "EPSG:32610"
                          ],
                          "type": "string"
                        },
                        "pixel_scale_m": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "height_px": {
                      "type": "integer"
                    },
                    "image_base64": {
                      "contentEncoding": "base64",
                      "type": "string"
                    },
                    "source_stats": {
                      "properties": {
                        "bands": {
                          "type": "integer"
                        },
                        "bit_depth": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "compression": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "width_px": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "image_base64",
                    "format",
                    "width_px",
                    "height_px",
                    "georef",
                    "source_stats",
                    "compute_ms"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_lfdx963d"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "type": "array"
            },
            "w": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "wasm-geotiff-transcoder.jannioura.workers.dev",
    "manifest_name": "wasm-geotiff-transcoder.jannioura.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "compute_ms": 0,
      "format": "webp",
      "georef": {
        "bounds_wgs84": [
          0
        ],
        "crs": "EPSG:32610",
        "pixel_scale_m": 0
      },
      "height_px": 0,
      "image_base64": "string",
      "source_stats": {
        "bands": 0,
        "bit_depth": 0,
        "compression": "string"
      },
      "width_px": 0
    },
    "type": "string"
  }
}