Megapixels measure the total number of pixels, not the shape. A long, narrow banner and a square can have the same count. Cameras are sold by this number, and a current phone records far more pixels than a product page ever displays.
A few marketplaces limit uploads by megapixels in addition to, or instead of, a maximum width and height. A photo straight from a phone can exceed such a limit, and so can a heavily upscaled image. The remedy is to export at smaller dimensions; the marketplace would scale the picture down anyway.
More megapixels do not mean a better product image. Sharp focus, even light and a product that fills the frame matter more, and beyond the size at which zoom works the extra pixels only add weight to the file.
How a megapixel count is worked out
The count is the width in pixels times the height in pixels, divided by a million. A photo a few thousand pixels wide and a little less high therefore holds several million pixels, and the figure a camera advertises is that product, rounded. Because the count multiplies two sides, it grows fast: twice the width and twice the height give four times the pixels.
It also shrinks more gently than it sounds. Halving the megapixel count shortens each side by only about three tenths, so a photo reduced to fit a megapixel cap usually keeps far more of its size than the halved figure suggests. A long panorama can stay under such a cap while one side exceeds a maximum length, and a square can do the opposite.
What the number on a phone or camera tells you
The figure describes the grid of the sensor, not the quality of the picture. A small phone sensor divided into very many pixels gives each one little light, so many phones with high counts combine neighbouring pixels into one and save a smaller image by default. The full count appears only in a special mode, often with more noise in poor light.
Lens, focus, light and processing decide how much of that grid holds real detail. A camera with fewer megapixels and a good lens can show the weave of a fabric more clearly than a phone with a far higher count used in a dim room, and both give a product page more pixels than it displays.
How cropping and digital zoom spend megapixels
Every crop removes pixels. A crop to half the width and half the height leaves a quarter of the original count, which is why a product photographed small in the middle of the frame can fall below a marketplace minimum once it is cropped to fill the frame.
Digital zoom on a phone is the same crop made before the photo is saved, often followed by an enlargement back to the full count. The file then reports many megapixels that hold the detail of few. Moving the phone closer, or using a real telephoto lens where the phone has one, keeps the detail that digital zoom only imitates.
Megapixels and related image terms
- Image dimensions
- Image dimensions give the width and the height separately; the megapixel count multiplies them into one figure. Two images with the same count can have very different shapes, and a rule on the length of a side is a rule about dimensions.
- DPI
- DPI is a print density stored in the file, and it does not change the pixel count. The megapixels decide how large a print can be at a given density; the dpi field only states which density was chosen.
- Image upscaling
- Image upscaling raises the megapixel count by adding pixels that software reconstructs. Doubling both sides multiplies the count by four, which can take a file over a megapixel cap that the original met.
- Image file size
- Image file size is the weight of the saved file. It rises with the megapixel count, but compression and format move it far more, so a file over a size limit is usually fixed by compression before any pixels are removed.
A megapixel checklist before upload
- The count was worked out from the exported file's own width and height, not taken from the camera's specification.
- Where the sales channel caps megapixels, the export stays below the cap with both sides still above the minimum.
- After cropping, enough pixels remain for the size from which the sales channel offers zoom.
- Close-ups were taken by moving the phone nearer to the product, not with digital zoom.
- Upscaled images were checked against the megapixel cap and the file size limit again after upscaling.
