(n, factor)
| 442 | |
| 443 | def resize_to_nearest_multiple_of_8(width, height): |
| 444 | def nearest_multiple(n, factor): |
| 445 | return round(n / factor) * factor |
| 446 | |
| 447 | new_width = nearest_multiple(width, 8) |
| 448 | new_height = nearest_multiple(height, 8) |
no outgoing calls
no test coverage detected