← All work

imgwhy

CLI + extension
sizes: (max-width: 840px) 50vw, 464px
iPhone SE · DPR 2480w
iPhone 15 Pro · DPR 3720w
Pixel 8 · DPR 2.625720w
iPad · DPR 2856w
web.devimage 4 of 10

DevTools shows an image’s intrinsic size next to its rendered size. Lighthouse tells you how many kilobytes you wasted. Neither tells you why the browser picked that file.

imgwhy runs the browser’s own selection algorithm against the page’s real srcset, sizes and device pixel ratio, and shows the arithmetic step by step. The command line also measures, driving a real browser with the cache off and recording what arrived.