← Back to directory

Portable raster packing computes the bytes needed for the equivalent raw P5 or P...

https://bild.halowerk.com/v1/pnm-sample-binary-payload-size

Overview

Portable raster packing computes the bytes needed for the equivalent raw P5 or P6 pixel payload at its original maxval. Use it when an agent needs the payload size before binary conversion.

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider bild
Source bazaar
Indexed 2026-11-20 02:09:10

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": { "pnm": "P3\n# tile swatch\n3 2\n15\n0 0 0 15 0 0 0 15 0\n0 0 15 15 15 15 15 0 0" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "data": { "bytes_per_sample": 1, "magic": "P6", "raster_bytes": 18 }, "limitations": "One ASCII P2 or P3 raster, up to 8000 pixels. Measurements use the encoded sample values and zero-based offsets.", "measured_at": "2026-11-20T00:47:07.745Z", "source": { "reference": "Caller-supplied Netpbm raster (P2/P3)", "retrieved_at": "2026-11-20T00:47:07.745Z" } }, "type": "json" }