Question: are pixels width by height?
Answer: In a digital image, the number of pixels are represented by the DPI (or PPI) and the width x height dimensions. For instance, a 2000 x 2000 pixels image at 72 DPI, has 4,000,000 total pixels.