def adjust_pad(dst_w, dst_h, img_w, img_h, amount=.1):
    x, y, w, h = adjust_fit(dst_w * (1-2*amount), dst_h * (1-2*amount), img_w, img_h)
    x = x + dst_w * amount
    y = y + dst_h * amount
    return x,y,w,h
dataset/ETHPy150Open mattharrison/rst2odp/odplib/imagescale.py/adjust_pad/original