How Digital Images Work
A digital image is a grid of pixels, and each pixel needs a fixed number of bits to store its color. This number of bits per pixel is called color depth. The file size is the pixel count multiplied by the color depth, converted from bits to bytes. This gives the uncompressed size — every pixel stored as-is, with no compression — and most real image files end up smaller than this because they're compressed.
If width and height both double, how many pixels are there?