UFlow Cloud
UFLOW

Images & PDF

Compress images, resize them, merge/split PDFs, convert to JPG.

Image and PDF endpoints accept multipart/form-data. An API key with tools:invoke scope unlocks higher limits (600 req/min, 25 MB uploads).

Endpoints

POST/api/tool/image-compressor

Upload JPEG/PNG/WebP; set quality (0–1) and optional maxSize.

POST/api/tool/image-resizer

Resize by width/height (preserves aspect ratio by default).

POST/api/tool/image-cropper

Crop to x,y,width,height rectangle.

POST/api/tool/image-rotate

Rotate by degrees (90/180/270).

POST/api/tool/image-metadata

Read dimensions + size/type from PNG/JPEG/GIF headers.

POST/api/tool/pdf-merge

Send two or more PDFs as repeated files field; server merges into one.

POST/api/tool/pdf-split

Upload a PDF and set afterPage=N β†’ two PDFs.

POST/api/tool/pdf-to-jpg

Render each page as JPG; set dpi (default 150).

POST/api/tool/images-to-pdf

Combine images into a single PDF (default A4).

Example: compress an image

curl -X POST https://cloud.uflow.uz/api/tool/image-compressor \
  -H "Authorization: Bearer uf_live_…" \
  -F "file=@photo.jpg" \
  -F "quality=0.7" \
  -F "maxSize=1920" \
  --output compressed.jpg

Example: merge multiple PDFs

curl -X POST https://cloud.uflow.uz/api/tool/pdf-merge \
  -H "Authorization: Bearer uf_live_…" \
  -F "files=@page1.pdf" \
  -F "files=@page2.pdf" \
  -F "files=@page3.pdf" \
  --output merged.pdf

Example: images to PDF

curl -X POST https://cloud.uflow.uz/api/tool/images-to-pdf \
  -H "Authorization: Bearer uf_live_…" \
  -F "files=@scan1.jpg" \
  -F "files=@scan2.jpg" \
  -F "pageSize=A4" \
  --output out.pdf

Response shape

Successful calls return ok:true, the tool slug, and a result object with metadata. Processed binaries will stream back with Content-Disposition once the Node-runtime processors ship; until then metadata and a base64 echo are returned so you can test integration.