Image Processing API
A production-ready image processing REST API to resize, compress, convert, crop, and run multi-step pipelines. Designed for reliability with consistent outputs, health checks, metrics, and predictable error handling.
Endpoints @ A Glance
Pipeline + Production
One request, multiple operations. Ideal for “ingest then optimize” flows.
{
"image_url": "https://example.com/image.jpg",
"operations": [
{ "operation": "resize", "width": 512, "height": 512 },
{ "operation": "convert", "format": "webp" },
{ "operation": "metadata" }
],
"output": { "type": "json" }
}Monitoring routes + consistent error shapes make it easy to operate.
https://datpaq.com/api/v1/image-processing/health
Status, version, uptime, environment, temp directory.
https://datpaq.com/api/v1/image-processing/metrics
Prometheus request counts, histograms, and error rate.
Supported formats
Legacy routes
Error Handling
{
"error": "Unsupported image format",
"correlationId": "req-123456789"
}Predictable error handling
Common failure cases return clear HTTP codes + a correlation ID for debugging.
Ship image workflows faster
Replace ad-hoc scripts with a stable API: resize for thumbnails, convert to WebP, compress for performance, and monitor it all in production.