Calculates integer ratios for pixel-perfect image upscaling with optional aspect-ratio correction.

See the project webpage for details.