def as_int(width, height):
    "Return an integer ratio tuple like (16, 9)."
    gcd = get_gcd(width, height)
    return int(width / gcd), int(height / gcd)
def as_int ( width , height ) : gcd = get_gcd ( width , height ) return int ( width / gcd ) , int ( height / gcd )
Return an integer ratio tuple like (16, 9).