|
14 | 14 | # limitations under the License. |
15 | 15 |
|
16 | 16 | # "width:height" |
17 | | -IMAGE_RES_SIZE_INFO: dict[str, tuple[int, int]] = { |
| 17 | +IMAGE_RES_SIZE_INFO: dict[str, dict[str, tuple[int, int]]] = { |
18 | 18 | "1024": {"1:1": (1024, 1024), "4:3": (1168, 880), "3:4": (880, 1168), "16:9": (1360, 768), "9:16": (768, 1360)}, |
19 | 19 | "720": {"1:1": (960, 960), "4:3": (960, 704), "3:4": (704, 960), "16:9": (1280, 704), "9:16": (704, 1280)}, |
20 | 20 | "512": {"1:1": (512, 512), "4:3": (640, 512), "3:4": (512, 640), "16:9": (640, 384), "9:16": (384, 640)}, |
21 | 21 | "480": {"1:1": (480, 480), "4:3": (640, 480), "3:4": (480, 640), "16:9": (768, 432), "9:16": (432, 768)}, |
22 | 22 | } |
23 | 23 |
|
24 | 24 | # "width:height" |
25 | | -VIDEO_RES_SIZE_INFO: dict[str, tuple[int, int]] = { |
| 25 | +VIDEO_RES_SIZE_INFO: dict[str, dict[str, tuple[int, int]]] = { |
26 | 26 | "720": {"1:1": (960, 960), "4:3": (960, 704), "3:4": (704, 960), "16:9": (1280, 704), "9:16": (704, 1280)}, |
27 | 27 | "512": {"1:1": (512, 512), "4:3": (640, 512), "3:4": (512, 640), "16:9": (640, 384), "9:16": (384, 640)}, |
28 | 28 | "480": {"1:1": (480, 480), "4:3": (640, 480), "3:4": (480, 640), "16:9": (768, 432), "9:16": (432, 768)}, |
|
0 commit comments