Upsampling creates new pixels by looking at the color and luminance (brightness) of nearby pixels.
The software compares nearby pixels, and then decides the color and luminance of the new pixel.
Scroll down, or click here.
Here's an example with a pumpkin flower.
The file for the pumpkin flower photograph is 18 KB.
Original - 18 KB
The photograph was made twice as big.
Doubled in Size - Still 18 KB
The file size is still 18 KB.
The same number of pixels have become larger to cover the larger area.
The photograph looks jaggy—the rectangular shapes of the pixels are starting to show.
Next, pixels were added to the file by upsampling the file with bicubic resampling.
Upsampled - Pixels Added
While the photograph isn't great, it's better with upsampling.
The three versions were cropped below for easier comparison.
![]() |
![]() |
![]() |
| Original | No Upsampling | Upsampled |
The No Upsampling version, and the Upsampled version, were enlarged below.
![]() |
![]() |
| No Upsampling | Upsampled |
The file size changed markedly due to the interpolation.
The original file is 18KB.
The file with upsampling is 199KB.
|
Original → Size Doubled, No Upsampling → Size Doubled, with Upsampling → |
![]() |
Next, let's try downsampling—subtracting pixels.
| 2 |