The details that quietly ruin photo pipelines
Four things go wrong in almost every photo-to-PDF pipeline. All four are handled by default here.
EXIF orientation. Rotate the pixels first, then strip the metadata. Otherwise every landscape photo ends up sideways.
Progressive JPEG. Baseline is our default and the integration choice for our PDF pipeline.
Colour profiles. The Sharp stage converts to sRGB using the information available after decode.
HEIC. Detected from bytes and decoded to an intermediate JPEG. Original EXIF and ICC metadata are not explicitly carried through that step. Test your own files rather than assuming full fidelity.
Use the phone photo guide for request options, orientation and colour checks, and handling partial batch failures. For a set of widths for responsive pages, read responsive image sizes in one batch call.
One call instead of two hundred and fifty
curl https://api.justapi.tech/v1/image/batch \
-H "Authorization: Bearer ak_live_..." \
-d '{"images":[{"url":"...","ref":"photo_01"}],"options":{"width":1600,"max_bytes":250000}}'
Up to 250 images per call, processed in parallel across the provider pool, with per-image failures that do not take down the batch. There is no batch surcharge: you pay the same as 250 individual calls and save 249 round trips.
Drop-in URL transforms
If you already serve images through a transform URL, the pattern is the same shape:
https://img.justapi.tech/t/{key_id}/w_1200,q_76,f_jpg/{file_id}
Cached at the edge, so the second request for the same transform is a cache hit and costs nothing.