(w: int, h: int, bg: str = "bg")
| 19 | |
| 20 | |
| 21 | def get_crop_waves_bg(w: int, h: int, bg: str = "bg") -> Image.Image: |
| 22 | img = Image.open(TEXT_PATH / f"{bg}.jpg").convert("RGBA") |
| 23 | |
| 24 | width, height = img.size |
| 25 | |
| 26 | crop_box = (0, height // 2, width, height) |
| 27 | |
| 28 | cropped_image = img.crop(crop_box) |
| 29 | |
| 30 | return crop_center_img(cropped_image, w, h) |
| 31 | |
| 32 | |
| 33 | def get_footer(color: Literal["white", "black", "hakush"] = "white"): |
nothing calls this directly
no outgoing calls
no test coverage detected