Understanding the Windows ICO Container Format
An ICO file is a binary resource container defined by Microsoft that holds one or more individual bitmap or PNG images at distinct resolutions and color depths. When Windows Shell, File Explorer, or a browser renders an icon, it inspects the file’s internal ICONDIR header and selects the exact pixel dimension that matches the display resolution—preventing fuzzy dynamic resampling.