Python Version OpenCV Pillow License: MIT Platform
Upscale photos and artwork up to 8x resolution with real-time 60FPS split slider comparison, micro-detail reconstruction, adaptive contrast, and edge-focused sharpening.
Image Upscaler Pro Application
Interactive Desktop Application featuring Catppuccin Mocha theme, side-by-side / split slider before-and-after view, quality presets, and clarity metrics.
Upscaling low-resolution macro photography (300 Γγ°γ€ 300 px β 1200 Γγ°γ€ 1200 px 4x HD). Restores specular highlight water droplets, seed texture crispness, and vibrant red tone.
Upscaling low-resolution digital illustration (300 Γγ°γ€ 300 px β 1200 Γγ°γ€ 1200 px 4x HD). Cleans color banding noise, sharpens linework edges, and boosts glowing vibrance.
- π Multi-Scale Resolution Multiplier: Upscale by 2x, 4x, 8x, or custom dimensions using Lanczos4 high-fidelity resampling.
- π¬ Micro-Detail Synthesizer: Recovers subtle surface textures, skin pores, water droplets, hair strands, fabric patterns, and line art crispness without halo artifacts.
- πͺ One-Click Auto-Optimizer: Automatically analyzes input blurriness and noise variance to set optimal sharpening, contrast, and denoise values.
- π Real-Time Clarity Score Metric: Calculates Laplacian variance before and after upscaling to display exact percentage gains in sharpness (e.g.
+25% to +377% Clarity Boost). - β 60FPS Silky-Smooth Split Viewer: Interactive comparison view that allows instant side-by-side or split slider inspection.
- π¨ CLAHE Adaptive Contrast: Restores hidden details in dark shadows and bright highlights in LAB color space.
- π‘οΈ Bilateral Noise Reduction: Eliminates JPEG compression grain and digital sensor noise pre-upscaling.
- π Directory Batch Processor: Upscale hundreds of photos automatically with one click.
- π» Cross-Platform Scriptable CLI: Full command-line interface for batch scripting and server integration.
| Test Sample | Input Resolution | Output Resolution | Scale Factor | Original Clarity | Enhanced Clarity | Sharpness Boost |
|---|---|---|---|---|---|---|
| Dewy Strawberry Macro | 300 Γγ°γ€ 300 px | 1200 Γγ°γ€ 1200 px | 4x HD | 142.5 | 680.4 | +377.4% β¨ |
| Magical Anime Art | 300 Γγ°γ€ 300 px | 1200 Γγ°γ€ 1200 px | 4x HD | 98.1 | 412.3 | +320.2% β¨ |
| Document Scan | 512 Γγ°γ€ 512 px | 2048 Γγ°γ€ 2048 px | 4x HD | 210.0 | 950.8 | +352.7% β¨ |
# Clone the repository git clone https://github.com/blazecodeprakhar/image-enhancer.git cd image-enhancer # Install required packages pip install -r requirements.txt
Run main.py without arguments:
python main.py
- Open Image: Click
π Choose Image File...or drag an image into the application. - Select Scale: Choose
2x Scale,4x Scale, or8x Scale. - Select Preset: Pick a profile (Ultra Photo Enhancer, Anime & Illustration, Text & Documents, Balanced) or click
πͺ Auto-Optimize Quality. - Enhance & Inspect: Click
β¨ UPSCALE & ENHANCE. Drag the split slider left/right to compare Before vs After. - Save Output: Click
πΎ Save Image...to export PNG, JPEG, or WebP.
Run single image or directory upscaling headlessly using cli.py:
# Single image 2x upscale python cli.py -i input.png -o output_hd.png -s 2.0 # 4x scale with Ultra Photo profile python cli.py -i photo.jpg -o photo_4k.png -s 4.0 -p "Ultra Photo Enhancer" # Batch folder processing python cli.py -i ./input_photos -o ./upscaled_photos -s 2.0 -p "Balanced (Default)"
| Argument | Flag | Description | Default |
|---|---|---|---|
--input |
-i |
Input image file path OR directory | Required |
--output |
-o |
Output file path OR output directory | Required |
--scale |
-s |
Scale multiplier (2.0, 4.0, 8.0) |
2.0 |
--preset |
-p |
Quality profile preset | Balanced (Default) |
--sharpen |
Unsharp mask strength (0.0 to 2.0) |
0.5 |
|
--denoise |
Noise reduction strength (0.0 to 10.0) |
2.0 |
|
--clahe |
Adaptive contrast clip limit (0.0 to 4.0) |
1.5 |
|
--vibrance |
Color vibrance multiplier (0.5 to 2.0) |
1.05 |
βββ main.py # Main application launcher (GUI / CLI router)
βββ gui.py # Desktop GUI with 60FPS split comparison canvas
βββ cli.py # Command-line interface for automation & batching
βββ upscaler_engine.py # Core processing engine (Micro-detail, CLAHE, Denoise)
βββ assets/ # App screenshot & test comparison visuals
βββ requirements.txt # Python dependencies (Pillow, OpenCV, NumPy)
βββ LICENSE # MIT Open Source License
βββ README.md # Repository documentation
Distributed under the MIT License. See LICENSE for details.