The algorithm is already in the image scaling utils, we just need to allow the user an option to choose between "actual" and "upscaled" export modes.