dpi-upscaler-checker
Check if images meet 300 DPI printing standards, and intelligently restore blurry low-resolution images using AI super-resolution technology.
Veto GatesRequired pass for any deployment consideration
Core Capability87 / 100 — 8 Categories
Medical TaskExecution Average: 79.6 / 100 — Assertions: 18/20 Passed
Script requires PIL/numpy; logic reviewed from source. DPI extraction from EXIF and info dict is correct. --json flag documented for stdout JSON output.
check_directory() uses Path.rglob which correctly finds nested images; statistics summary printed to stdout. Symlink traversal risk documented.
Upscale logic reviewed from source; PIL Lanczos fallback is correct; RGBA alpha channel handling is correct. Format-conditioned save parameters documented.
check_image() wraps Image.open in try/except and returns error dict. Non-zero exit code for check mode errors documented.
batch_upscale() logic reviewed from source; --min-dpi filter correctly skips images already meeting DPI threshold. Batch upscale JSON report gap documented in Known Limitations.
Key Strengths
- Graceful fallback chain (Real-ESRGAN -> OpenCV DNN -> PIL Lanczos) ensures the skill works even without optional dependencies
- --json flag and --demo flag documented for agent consumption and testing without real images
- Input Validation at Step 1 of Workflow enforcing early exit before processing
- RGBA alpha channel correctly preserved during upscaling; DPI extraction from both EXIF and PIL info dict