(w, h)
| 63 | target_ratio = orig_w / orig_h |
| 64 | |
| 65 | def check_valid(w, h): |
| 66 | if w <= 0 or h <= 0: |
| 67 | return False |
| 68 | return w * h <= target_area and w % divisor == 0 and h % divisor == 0 |
| 69 | |
| 70 | def get_ratio_diff(w, h): |
| 71 | return abs(w / h - target_ratio) |
no outgoing calls
no test coverage detected