← Back to directory

PNG palette matching finds the closest fully opaque palette entry by squared dis...

https://bild.halowerk.com/v1/indexed-png-nearest-opaque-swatch

Overview

PNG palette matching finds the closest fully opaque palette entry by squared distance in encoded RGB bytes. Use it when an agent needs a deterministic solid-colour substitution.

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider bild
Source bazaar
Indexed 2026-11-20 01:03:37

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "color": "#116699", "png": "iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAMAAACeL25MAAAAElBMVEUAAAASZZTpoBQbjEsbjEuWoKqG5LLQAAAABnRSTlMA//+AgP+Nc6qqAAAAGElEQVR4nGNgYGRkYGBkYmIEEswgJiMDAAC7ABLWpWFfAAAAAElFTkSuQmCC" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "data": { "index": 1, "rgb": "126594", "squared_distance": 27 }, "limitations": "Non-interlaced indexed PNG, at most 262144 pixels. Calculations use encoded component bytes without colour-profile transformations.", "measured_at": "2026-11-19T21:02:26.656Z", "source": { "reference": "Supplied indexed PNG, decoded locally", "retrieved_at": "2026-11-19T21:02:26.656Z" } }, "type": "json" }