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
KEY="LIBERAS1-…" # from Start freeDATA=$(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
Pricing
Free pack
200 calls on us, once per account. Sign in with GitHub and your API key is ready: no card, no form.
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:
Step 1
- Decode JPEGimage-decode-jpegLive
- Decode PNGimage-decode-pngLive
- Encode PNGimage-encode-pngLive
- Resizeimage-resizeLive
- Cropimage-cropLive
- Rotate and flipimage-transformLive
- Grayscaleimage-grayscaleLive
- Box blurimage-blurBounty · 128 shares
- Invertimage-invertBounty · 32 shares
- Thresholdimage-thresholdBounty · 48 shares
- Brightness and contrastimage-adjustBounty · 80 shares
- Padimage-padBounty · 64 shares
- Compositeimage-compositeBounty · 128 shares
- Similar images (PSNR 40 dB)image-similarBounty · 32 shares
- Encode JPEGimage-encode-jpegBounty · 160 shares
Step 2
- PNG thumbnailimage-thumbnailuses image-decode-png, image-encode-png, image-resizeLive
- Pipeline: decode, steps, encodeimage-pipelineuses image-decode-png, image-decode-jpeg, image-encode-png, image-resize, image-crop, image-transform, image-grayscaleLive
- Edit decoded pixelsimage-editwaits on image-blurBounty · 45 shares
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