01How are the pixel dimensions found?
From the image's own header bytes — PNG's IHDR, GIF's screen descriptor, JPEG's SOF marker, WebP's VP8 chunk, BMP's DIB header — read from the first few kilobytes of each file. That is why they can disagree with the width and height attributes in your markup, which is the comparison worth having.
