Why can dropping 100 compressed JPEGs totaling just 300 MB on disk push a browser tab past 3 GB of active memory? Understanding the distinction between compressed storage bytes and uncompressed RGBA GPU/RAM framebuffers lets you curate massive high-resolution shoots without hitting browser out-of-memory limits.
1. The RGBA Bitmap Multiplier: Why a 3 MB JPEG Consumes 32 MB of RAM
Formats like JPEG, WebP, and AVIF achieve small disk footprints through frequency-domain compression. Yet before a browser compositor can paint an image onto your display, it must decode every pixel into an uncompressed 32-bit RGBA bitmap (8 bits each for Red, Green, Blue, and Alpha = 4 bytes per pixel):
Crucially, decoded memory depends exclusively on pixel dimensions, regardless of whether the source file was heavily compressed to 800 KB or saved lossless at 25 MB. That is why Tile Viewer's Lightbox Inspector calculates and displays live RGBA frame memory for every asset.
2. Resolution-to-RAM Benchmark Table (FHD through 8K)
| Resolution Tier | Pixel Dimensions | Decoded RAM / Image | 100 Active Images Total |
|---|---|---|---|
| 1080p Full HD | 1920 × 1080 | 7.91 MB | ~791 MB (Effortless) |
| 1440p QHD | 2560 × 1440 | 14.06 MB | ~1.41 GB (Smooth) |
| 4K UHD | 3840 × 2160 | 31.64 MB | ~3.16 GB (Near tab ceiling) |
| 24 MP Camera Export | 6000 × 4000 | 91.55 MB | ~9.15 GB (Batch in 40s) |
| 8K UHD Master | 7680 × 4320 | 126.56 MB | ~12.6 GB (Batch in 25s) |
3. Viewport-Aware Video Throttling via IntersectionObserver
Concurrent <video> decoders are even more resource-sensitive because hardware GPU decode slots are finite. Tile Viewer attaches an IntersectionObserver (with a 120px preload margin) to every media card—automatically calling video.play() only while a tile is visible and invoking video.pause() plus placeholder unloading as soon as it scrolls offscreen, paired with native loading="lazy" on still images.
4. Practical Memory Guidelines for Smooth 60fps Culling
- Cull Incrementally: Dismissing rejected cards immediately triggers
URL.revokeObjectURL(), freeing decoded bitmap buffers back to the browser allocator. - Use 2560px Proof Exports for 200+ Print Masters: Downsampling 8K print masters to 2560px review proofs cuts RGBA memory consumption by nearly 88% with zero perceptible difference in multi-column layouts.