scale

The scaling algorithm for how to fit the source image's dimensions into the target's dimensions.