Resize the image to be the given width and height
(img, size)
| 140 | |
| 141 | |
| 142 | def resize_by_hw(img, size): |
| 143 | '''Resize the image to be the given width and height''' |
| 144 | new_img = img.resize((size[1], size[0])) |
| 145 | return new_img |
| 146 | |
| 147 | |
| 148 | def color_cast(img, offset): |