{"name":"Image Crop API","version":"1.0.0","description":"Smart image cropping using smartcrop.js and Sharp","endpoints":{"health":"GET /health","crop":"POST /crop","cropGet":"GET /crop"},"usage":{"post":{"url":"/crop","method":"POST","body":{"imageUrl":"string (required)","width":"number (optional if aspectRatio provided)","height":"number (optional if aspectRatio provided)","aspectRatio":"string (optional, format: \"16:9\")","quality":"number (optional, 1-100, default: 80, ignored for PNG)","format":"string (optional, jpeg|png|webp, default: png lossless)","faceDetection":"boolean (optional, default: true)","faceConfidence":"number (optional, 0.0-1.0, default: 0.7)"}},"get":{"url":"/crop","method":"GET","query":"Same parameters as POST body"}},"features":{"description":"Advanced image processing capabilities","capabilities":["Three-tier intelligent face detection (TensorFlow → OpenCV → Smart Crop)","Smart content-aware cropping","Multiple aspect ratio support","Lossless PNG output","Complete metadata removal (EXIF, IPTC, XMP)","Automatic image cleanup (30 min expiry)","High-quality image processing with Sharp"]},"intelligence":{"description":"Three-tier intelligent cropping: TensorFlow → OpenCV → Smart Crop","tiers":{"tier1":"TensorFlow BlazeFace - Modern, fast AI face detection","tier2":"OpenCV.js - Robust fallback face detection","tier3":"Smart Crop - Content-aware cropping when no faces found"},"strategies":{"face-centered-tensorflow":"Single high-confidence face (TensorFlow)","face-enhanced-smart-tensorflow":"Multiple/low-confidence faces (TensorFlow + Smart Crop)","face-centered-opencv":"Single high-confidence face (OpenCV fallback)","face-enhanced-smart-opencv":"Multiple/low-confidence faces (OpenCV + Smart Crop)","smart-crop":"Pure content-aware cropping (no faces detected)"}}}