## Features
- 📱 **Native Android App**: Built with Kotlin and Jetpack Compose
- 🎨 **Image to Pixel Art**: Convert regular images to pixel art style
- ⚡ **High Performance**: Optimized based on the original pixelit.js algorithm, 6-7x faster processing
- 🎛️ **Adjustable Parameters**:
- Pixelation scale (1%-50%)
- Grayscale mode toggle
- Palette mode toggle
- 💾 **Save Function**: Save processed images to gallery
- 🖼️ **Focused Display**: Shows only the processed pixel art effect with a cleaner interface
- 🔧 **Smart Processing**: Supports large images (2000x2000+) with automatic memory management
## Technical Implementation
### Core Algorithm
Based on the original JavaScript version algorithm, reimplemented and optimized in Kotlin:
1. **Pixelation Processing**:
- Smart large image handling (auto-adjusts scale for >900px images)
- Precise boundary calculations to avoid cropping issues
- Optimized drawing methods using Rect for precise control
2. **Color Similarity Calculation**: Uses Euclidean distance for color similarity calculation
3. **Palette Mapping**:
- Batch pixel processing for 6-7x performance improvement
- Proper transparency handling
- Optimized memory management
4. **Grayscale Conversion**: RGB average value calculation for grayscale (consistent with original algorithm)