Ensure the value is divisible by the stride.
(self, value, stride)
| 66 | self.antialias = antialias |
| 67 | |
| 68 | def _make_divisible(self, value, stride): |
| 69 | """Ensure the value is divisible by the stride.""" |
| 70 | return max(stride, int(round(value / stride) * stride)) |
| 71 | |
| 72 | def _apply_scale(self, width, height, scale): |
| 73 | new_width = round(width * scale) |