A native macOS app that uses Real-ESRGAN to upscale images with AI-powered enhancement. Built specifically for ARM-based Macs (Apple Silicon) with SwiftUI.
- 🖼️ Drag & Drop Interface: Simply drag images into the app or use the file picker
- 🚀 4x Upscaling: Uses Real-ESRGAN_x4plus model for high-quality image enhancement
- 🎯 ARM Native: Optimized for Apple Silicon Macs (M1, M2, M3, etc.)
- 💾 Export Options: Save upscaled images in PNG or JPEG format
- 📱 Modern UI: Clean SwiftUI interface with progress tracking
- 🔧 Auto Setup: Automatically downloads Real-ESRGAN if not installed
Real-ESRGAN is a state-of-the-art AI model developed by researchers at Tencent ARC Lab that specializes in:
- Upscaling low-resolution images to higher resolutions
- Enhancing image quality and reducing artifacts
- Working exceptionally well with photos, artwork, and illustrations
- Maintaining sharp details while increasing image size
Research Paper: Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data
- macOS 12.0 or later
- Apple Silicon Mac (M1/M2/M3) - recommended
- Intel Mac - supported but may have different performance
- Xcode 14+ (for building from source)
- Clone this repository:
git clone https://github.com/yourusername/TagMyStockUpscaler.git
cd TagMyStockUpscaler-
Open
TagMyStockUpscaler.xcodeprojin Xcode -
Build and run the project (⌘+R)
-
The app will automatically guide you through setting up Real-ESRGAN on first launch
If you prefer to set up Real-ESRGAN manually before running the app:
# Run the included setup script
./setup_realesrgan.shOr install via Homebrew:
brew install xinntao/real-esrgan/realesrgan-ncnn-vulkan- Launch the App: Open TagMyStockUpscaler from Applications or Xcode
- Setup (First Time): If Real-ESRGAN isn't installed, follow the setup guide
- Upload Image: Drag & drop an image or click "Select Image"
- Upscale: Click "Upscale Image" and wait for processing
- Save: Click "Save Upscaled Image" to export the result
Input: JPEG, PNG, TIFF, HEIC, WebP, and most common image formats Output: PNG, JPEG
- Photos: Works great with portraits, landscapes, and general photography
- Artwork: Excellent for digital art, illustrations, and drawings
- Screenshots: Perfect for enhancing low-resolution screenshots
- Avoid: Very high-resolution images (may be slow), heavily compressed images
- Model: Real-ESRGAN_x4plus (optimized for general images)
- Upscaling Factor: 4x (can output at custom scales)
- Backend: NCNN with Vulkan acceleration
- Processing: Local processing (no internet required after setup)
- Memory: Processes images in tiles to handle large images efficiently
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ SwiftUI App │ -> │ ImageUpscaler │ -> │ Real-ESRGAN │
│ │ │ Class │ │ Executable │
└─────────────────┘ └──────────────────┘ └─────────────────┘
- ContentView.swift: Main UI with drag/drop and image display
- ImageUpscaler.swift: Handles Real-ESRGAN integration and processing
- SetupView.swift: Guides users through Real-ESRGAN installation
If you see "Real-ESRGAN not found":
- Use the automatic download in the app
- Run
./setup_realesrgan.shmanually - Install via Homebrew (see installation section)
macOS may ask for permission to run Real-ESRGAN:
- Go to System Preferences → Security & Privacy
- Allow the Real-ESRGAN executable to run
- Or right-click the executable and select "Open"
If processing is slow:
- Ensure you're on an Apple Silicon Mac for best performance
- Try with smaller images first
- Close other intensive applications
For very large images:
- The app uses tiling to process large images
- If you encounter issues, try with smaller source images
- Ensure you have sufficient free disk space
Processing times on M1 MacBook Pro (8GB RAM):
- 512x512 image: ~5-10 seconds
- 1024x1024 image: ~15-30 seconds
- 2048x2048 image: ~60-120 seconds
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly on Apple Silicon
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Real-ESRGAN is licensed under the BSD 3-Clause License by Tencent ARC Lab.
- Real-ESRGAN: xinntao/Real-ESRGAN - The amazing AI upscaling technology
- NCNN: Tencent/ncnn - High-performance neural network inference framework
- Apple: For the excellent SwiftUI framework and Apple Silicon performance
If you encounter any issues:
- Check the troubleshooting section above
- Look at existing GitHub Issues
- Create a new issue with:
- macOS version
- Mac model (Intel/Apple Silicon)
- Steps to reproduce
- Error messages or screenshots
Made with ❤️ for the macOS community
