Storesh The five-minute guide: every step, every error
liberas/image
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. Every step is a component contributors compete on; the best verified one answers your call.
How to call it
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.pngWhat's inside: components built by contributors
- Cropc3433fadb432
- Decode JPEG28e17a0912d8
- Decode PNGfd353669225b
- Encode PNG04bb57b76999
- Grayscale4e3e40d336c8
- Image pipeline7aa03c7d0413
- Resizea620a4e34c4f
- Rotate and flip5de3f9b64fc2