A modern, privacy-first, 100% client-side web app to scan physical documents using your webcam directly in the browser. Featuring real-time WebGL keystone correction, OBS-style color grading, a 360° circular rotation dial, interactive cropping, JSON presets, a drag-and-drop filmstrip, and multi-format ZIP export with custom DPI metadata—without any server uploads.
- 100% Local Processing: Webcam capture, WebGL image processing, and ZIP archiving happen entirely inside your browser. Your scanned documents never leave your device!
- Real-Time WebGL Optical Engine: Fix perspective distortions on the fly with horizontal and vertical Keystone (trapezoid) correction, digital zoom, and automatic 2D Canvas fallback.
- 360° Rotation Dial & Mirroring: Freely rotate your framing from -180° to +180° using an interactive circular dial (with quick-snap buttons for -90°, 0°, +90°, 180°), plus instant Flip Horizontal and Flip Vertical toggles.
- OBS-Style Color Grading: Fine-tune Brightness, Contrast, Saturation, Hue Shift, Gamma, and Sharpness via synced sliders and numeric inputs, or switch between Full Color, Grayscale, Document Enhance, and Auto modes.
- Interactive Crop Overlay: Drag edges, corners, or the interior of the red-bordered crop box directly over the live feed while the outer area dims for clear framing.
- JSON Presets (Save & Load): Export your exact optical, color, and crop configuration to a
.jsonfile and reload it anytime—complete with strict validation to reject malformed files. - Drag-and-Drop Filmstrip Carousel: Capture multiple pages in sequence, inspect them in a lightbox, delete unwanted shots, and reorder pages effortlessly via drag-and-drop.
- Multi-Format ZIP Export & Custom DPI: Download all captured pages in a single ZIP archive as PNG, JPEG, WebP, or BMP, with embedded DPI metadata (pHYs / JFIF / BMP headers).
- Built-In Demo Mode & Adaptive UI: Test every feature without a webcam using the procedural sample sheet, wrapped in a sleek rounded interface with automatic/manual Dark & Light themes.
- Grant camera access via the browser prompt and select your preferred webcam from the device menu (or launch Demo Mode to test immediately).
- Adjust the red crop frame directly on the live preview and fine-tune Keystone, Rotation, Flip, and Color settings from the right control panel.
- (Optional) Save your setup as a JSON preset so you can reuse the exact same desk/camera alignment later.
- Click Capture Page to snap each document into the bottom filmstrip carousel, where you can preview, delete, or reorder pages by dragging them.
- Choose your target image format and DPI, then click Download ZIP to export your entire batch locally.
- Zero-Backend, Single-File Architecture: Pure HTML, CSS, and JavaScript with GPU-accelerated WebGL shaders—no installers, no cloud processing, and no file-size limits.
- Studio-Grade Control: Combines document scanning tools (keystone correction, DPI metadata, batch ZIP) with OBS-like camera controls and repeatable JSON presets.
- Absolute Privacy: Digitizing IDs, receipts, contracts, or handwritten notes stays strictly on your machine with zero network transmission.
- Turn Any Webcam into a Scanner: Ideal for overhead desk cameras, laptops, or quick document digitization without needing dedicated hardware or bloated desktop software.
Simply visit the Live Demo hosted on GitHub Pages.
Running this tool locally is quick and easy:
- Clone this repository or download
optiscan_studio.html. - (Optional, for 100% offline use) Download
jszip.min.js,tailwindcss.js, and theInterfont into a locallibs/folder and update the paths at the top of the<head>section. - Serve the folder over
localhostusing a local web server (such as VS Code's Live Server orpython -m http.server)—required by modern browsers to grant webcam permissions. - Open the local URL in your browser and start scanning!

