Resize a 4000 × 3000 image to 2000 × 1500. Pixel count falls to one quarter.

The worked example

Calculation
4000 * 3000 = 12000000
2000 * 1500 = 3000000
3000000 / 12000000 = 0.25

These are constructed inputs. Displayed decimals are rounded; they are not product measurements.

Understand the result before using it

A two-dimensional image has two scale factors. Reducing width to one half while preserving the aspect ratio also halves height. Multiplying those factors gives one quarter of the pixels. Reducing each edge to 75 percent instead retains 56.25 percent of the pixels, not 75 percent. This lets you estimate the pixel workload before exporting multiple versions.

To keep about half the pixels with the original proportions, each edge needs a factor of approximately 0.7071. For a 4000 by 3000 image that is roughly 2828 by 2121 pixels after whole-pixel rounding. Compare the actual dimensions after export because a tool may round edges differently. Keep the original separately: resizing back upward creates more sample positions but does not restore the detail removed by the first reduction. For an upload limit, inspect exported bytes as well as dimensions; a pixel calculation alone cannot guarantee the file fits.

If the copy is for a frame, check what the paper shape will crop before shrinking it. Then use the exported dimensions to calculate the print size at your chosen pixel density.

The boundary of this calculation

Compressed file size also depends on image detail, format and quality settings.

Inspect the example inputs and run the Python checks. They use only the published examples and do not read personal folders.