Smart Chunking
Smart Chunking
Section titled “Smart Chunking”Smart Chunking is ImageChunker’s signature feature — an intelligent algorithm that analyzes your images to find optimal split points.
How It Works
Section titled “How It Works”Unlike simple grid-based splitting, Smart Chunking:
- Scans image content — Analyzes pixel patterns and content density
- Detects boundaries — Identifies natural break points (blank spaces, scene changes)
- Avoids awkward cuts — Won’t split through text, faces, or key elements
- Optimizes distribution — Balances chunk sizes while respecting content
The Algorithm
Section titled “The Algorithm”Smart Chunking uses a multi-pass approach:
Pass 1: Edge Detection├── Scan horizontal slices for content changes├── Identify high-contrast boundaries└── Mark potential split candidates
Pass 2: Content Analysis├── Detect text regions (avoid mid-word splits)├── Identify faces and figures└── Score each candidate by "splitability"
Pass 3: Optimization├── Balance chunk sizes (prefer even distribution)├── Respect minimum/maximum chunk heights└── Select optimal split pointsSettings
Section titled “Settings”Sensitivity
Section titled “Sensitivity”Controls how aggressively Smart Chunking looks for boundaries:
| Level | Behavior | Best For |
|---|---|---|
| Low | Fewer, larger chunks | Dense content |
| Medium | Balanced splitting | Most images |
| High | More, smaller chunks | Varied content |
Minimum Chunk Height
Section titled “Minimum Chunk Height”Prevents chunks from becoming too small:
- Default: 200px
- Range: 50-1000px
- Tip: Set higher for images with less content variation
Content Detection
Section titled “Content Detection”Enable or disable specific detection:
- Text Detection: Avoid splitting text mid-line
- Face Detection: Keep faces intact
- Object Detection: Preserve key subjects
When to Use Smart Chunking
Section titled “When to Use Smart Chunking”Ideal Cases
Section titled “Ideal Cases”✅ Screenshots with mixed content
- Text sections followed by images
- UI elements of varying sizes
✅ Comic and manga pages
- Panel boundaries provide natural splits
- Dialogue should stay together
✅ Infographics
- Sections often have natural breaks
- Headers indicate split points
✅ Photos with subjects
- Portraits should keep faces together
- Group photos benefit from content awareness
Consider Regular Mode Instead
Section titled “Consider Regular Mode Instead”⚠️ Abstract art — No clear boundaries to detect ⚠️ Uniform textures — Equal content everywhere ⚠️ Exact dimensions required — Smart mode may vary sizes ⚠️ Speed critical — Regular mode is faster
Comparison
Section titled “Comparison”| Aspect | Smart Chunking | Regular Mode |
|---|---|---|
| Speed | Slower (analysis) | Faster |
| Chunk sizes | Variable | Fixed |
| Content awareness | Yes | No |
| Text protection | Yes | No |
| Best for | Varied content | Uniform content |
Tips for Best Results
Section titled “Tips for Best Results”Improve Detection Accuracy
Section titled “Improve Detection Accuracy”- Use high-resolution sources — More pixels = better analysis
- Increase contrast — Clear boundaries are easier to detect
- Clean backgrounds — Reduce noise in whitespace areas
Handle Edge Cases
Section titled “Handle Edge Cases”If Smart Chunking isn’t finding good splits:
- Adjust sensitivity — Try higher or lower
- Set minimum height — Prevent too-small chunks
- Use overlap — Add pixels between chunks
- Fall back to Regular — Sometimes fixed grids work better
Preview and Iterate
Section titled “Preview and Iterate”- Process with Smart mode
- Review each chunk boundary
- Adjust settings if needed
- Re-process until satisfied
Technical Details
Section titled “Technical Details”Performance
Section titled “Performance”- GPU Accelerated: Metal shaders analyze content
- Memory Efficient: Streaming processing for large images
- Cancellable: Stop analysis anytime
Accuracy Factors
Section titled “Accuracy Factors”| Factor | Impact |
|---|---|
| Image resolution | Higher = better detection |
| Content contrast | Higher = clearer boundaries |
| Content variety | More variation = more options |
| Background uniformity | Cleaner = easier detection |
Examples
Section titled “Examples”Screenshot with Text
Section titled “Screenshot with Text”Original: 1080 × 4000px
Smart Chunking Result:├── Chunk 1: Header + intro (1080 × 800px)├── Chunk 2: Feature list (1080 × 1200px)├── Chunk 3: Screenshots (1080 × 1100px)└── Chunk 4: Footer (1080 × 900px)
Note: Each chunk contains complete sectionsWebtoon Panel
Section titled “Webtoon Panel”Original: 800 × 10000px
Smart Chunking Result:├── Chunks align with panel borders├── Speech bubbles stay with their panels└── No mid-action splits
Result: Natural reading experience when scrolled