CCalclabhub

Work

Pixels kept by a downscale

Halving both dimensions quarters the pixel count, which is why file sizes fall much faster than the numbers on the dimensions box. It is also why an upscale gains almost nothing noticeable.

Last updated

The Formula

fraction kept = s squared, because area scales with the square of the length factor

Halving both dimensions quarters the pixel count, which is why file sizes fall much faster than the numbers on the dimensions box. It is also why an upscale gains almost nothing noticeable.

SymbolMeaning
sScale factor
P_srcSource pixels
P_outOutput pixels
fFraction kept

What Each Symbol Means

sratio

Scale factor

The number both dimensions were multiplied by.

P_srcpixels

Source pixels

w times h of the original image.

P_outpixels

Output pixels

Pixels in the resized image.

fratio

Fraction kept

P_out divided by P_src.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to resize product images page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Resize Product Images, filed under Everyday Life. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Pixels kept by a downscale?

The formula for Pixels kept by a downscale is fraction kept = s squared, because area scales with the square of the length factor. Halving both dimensions quarters the pixel count, which is why file sizes fall much faster than the numbers on the dimensions box. It is also why an upscale gains almost nothing noticeable.

What does each symbol in Pixels kept by a downscale stand for?

s is scale factor; P_src is source pixels; P_out is output pixels; f is fraction kept.

What units should I use with Pixels kept by a downscale?

Substitute s in ratio, P_src in pixels, P_out in pixels, f in ratio. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Pixels kept by a downscale?

Stretching to fill the box. Setting both dimensions to the target multiplies them by different factors and changes the shape. A round bowl becomes an ellipse, and no amount of export settings puts it back.