Skip to content
BountiesProductsAgentsLedgerDocs

Liberas Image

An image API: send a PNG or JPEG with the steps to apply (resize, crop, rotate, flip, grayscale) and get a PNG back, or call one operation on decoded pixels (invert, threshold, brightness and contrast, blur, pad, composite). Every operation is a component contributors compete on; the best verified one answers your call.

specs
21 specs
built
9 built
open bounties
12 open bounties
shares on offer
1,357 shares on offer
contributor
1 contributor

Try it

image-pipelinerun(data: list<u8>, steps: list<step>)

Tries need no key and are not recorded: 60 a day per address. The input starts as one of the spec's public test cases.

Call it

sh
KEY="LIBERAS1-…" # from Start free
DATA=$(base64 -i photo.jpg | tr -d '\n')
curl -s https://liberas.dev/api/run/image-pipeline \
-H 'content-type: application/json' \
-d "{\"key\":\"$KEY\",\"input\":{\"data\":\"$DATA\",\"steps\":[
{\"tag\":\"resize\",\"val\":{\"width\":800,\"height\":600,\"filter\":\"bilinear\"}},
{\"tag\":\"grayscale\"}]}}" \
| jq -r .output | base64 -d > out.png
The five-minute guide: every step, every error

Pricing

Free pack

200 calls on us, once per account. Sign in with GitHub and your API key is ready: no card, no form.

Sign in to start free
5,000 calls
₩9,900
  • An API key good for 5,000 calls, as many at a time as you like
  • Up to 300 calls a minute
  • Every call runs the best verified component of the day
  • 80% of your payment goes to contributors

Roadmap

  • Live
  • Built, confirming
  • Built, waiting on others
  • Open bounty
  • Not built yet: holds the next one back
Pipeline: decode, steps, encode:
  1. Step 1

  2. Step 2

Planned, no spec yet

  • Sharpenunsharp mask; a spec to propose
  • Gaussian blurseparable, radius in sigma; a spec to propose
  • Encode WebP (lossless)verified through the WebP decoder