Upload Quality Validation
for Images & PDFs

Browser-side blur detection, sharpness analysis, resolution limits, and format checks —validate files before they reach your server.

$ npm install blurry-check
  • Edge Detection
  • OpenCV Laplacian
  • Multi-page PDF
  • Pre-upload Checks
  • TypeScript
  • Framework Agnostic

Everything You Need

A complete pre-upload quality toolkit that runs entirely in the browser.

  • Blur Detection

    Sobel edge analysis and OpenCV Laplacian variance. Catch blurry photos before they enter your pipeline.

  • PDF Quality

    Per-page rendering at multiple scales. Text sharpness, orientation checks, and document frame analysis.

  • Upload Validation

    Brightness, contrast, resolution, file size, MIME type, and magic-byte checks — all in the browser.

  • Smart Analysis

    Automatic certificate exemption. First-page leniency for multi-page docs. No false positives from logos.

  • Fully Configurable

    Thresholds, detection methods, presets for common upload flows — general, KYC, receipts, and more.

  • Framework Agnostic

    Works with React, Vue, Angular, Qwik, and vanilla JS. Tree-shakeable with zero framework dependencies.

Try It Yourself

Upload an image or PDF to see real-time quality validation.

Select a File

or drag and drop

JPG, PNG, GIF, BMP, WebP, PDF

Select a file and click Analyze to see results.