From e8ddb8b0c1bcd4d6a03e6ef755dfbf5f00a9d0a5 Mon Sep 17 00:00:00 2001 From: 1hew Date: Wed, 8 Jul 2026 11:19:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(resize):=20=E4=BF=AE=E6=AD=A3=20Gemini=203.?= =?UTF-8?q?1=20Flash=20=E9=A2=84=E8=AE=BE=E5=88=86=E8=BE=A8=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新所有分辨率预设值为正确的 16 的倍数 - 移除无效的 PRESET_ALIASES 条目 --- .../image_resize_gemini_31_flash_image.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/nodes/image_resize/image_resize_gemini_31_flash_image.py b/nodes/image_resize/image_resize_gemini_31_flash_image.py index 23d4e93..f9a4d71 100644 --- a/nodes/image_resize/image_resize_gemini_31_flash_image.py +++ b/nodes/image_resize/image_resize_gemini_31_flash_image.py @@ -8,18 +8,18 @@ class ImageResizeGemini31FlashImage(ImageResizeGemini30ProImage): # 0.5k_ratios ("[0.5k] 512x512 (1:1)", 512, 512), ("[0.5k] 256x1024 (1:4)", 256, 1024), - ("[0.5k] 192x1536 (1:8)", 192, 1536), - ("[0.5k] 424x632 (2:3)", 424, 632), - ("[0.5k] 632x424 (3:2)", 632, 424), + ("[0.5k] 176x1456 (1:8)", 176, 1456), + ("[0.5k] 416x624 (2:3)", 416, 624), + ("[0.5k] 624x416 (3:2)", 624, 416), ("[0.5k] 448x592 (3:4)", 448, 592), ("[0.5k] 1024x256 (4:1)", 1024, 256), ("[0.5k] 592x448 (4:3)", 592, 448), ("[0.5k] 464x576 (4:5)", 464, 576), ("[0.5k] 576x464 (5:4)", 576, 464), - ("[0.5k] 1536x192 (8:1)", 1536, 192), + ("[0.5k] 1456x176 (8:1)", 1456, 176), ("[0.5k] 384x688 (9:16)", 384, 688), ("[0.5k] 688x384 (16:9)", 688, 384), - ("[0.5k] 792x168 (21:9)", 792, 168), + ("[0.5k] 784x336 (21:9)", 784, 336), # 1k_ratios ("[1k] 1024x1024 (1:1)", 1024, 1024), ("[1k] 512x2064 (1:4)", 512, 2064), @@ -31,7 +31,7 @@ class ImageResizeGemini31FlashImage(ImageResizeGemini30ProImage): ("[1k] 1200x896 (4:3)", 1200, 896), ("[1k] 928x1152 (4:5)", 928, 1152), ("[1k] 1152x928 (5:4)", 1152, 928), - ("[1k] 3072x384 (8:1)", 3072, 384), + ("[1k] 2928x352 (8:1)", 2928, 352), ("[1k] 768x1376 (9:16)", 768, 1376), ("[1k] 1376x768 (16:9)", 1376, 768), ("[1k] 1584x672 (21:9)", 1584, 672), @@ -42,26 +42,26 @@ class ImageResizeGemini31FlashImage(ImageResizeGemini30ProImage): ("[2k] 1696x2528 (2:3)", 1696, 2528), ("[2k] 2528x1696 (3:2)", 2528, 1696), ("[2k] 1792x2400 (3:4)", 1792, 2400), - ("[2k] 4096x1024 (4:1)", 4096, 1024), + ("[2k] 4128x1024 (4:1)", 4128, 1024), ("[2k] 2400x1792 (4:3)", 2400, 1792), ("[2k] 1856x2304 (4:5)", 1856, 2304), ("[2k] 2304x1856 (5:4)", 2304, 1856), - ("[2k] 6144x768 (8:1)", 6144, 768), + ("[2k] 5856x704 (8:1)", 5856, 704), ("[2k] 1536x2752 (9:16)", 1536, 2752), ("[2k] 2752x1536 (16:9)", 2752, 1536), ("[2k] 3168x1344 (21:9)", 3168, 1344), # 4k_ratios ("[4k] 4096x4096 (1:1)", 4096, 4096), - ("[4k] 2048x8192 (1:4)", 2048, 8192), - ("[4k] 1536x12288 (1:8)", 1536, 12288), + ("[4k] 2048x8256 (1:4)", 2048, 8256), + ("[4k] 1408x11712 (1:8)", 1408, 11712), ("[4k] 3392x5056 (2:3)", 3392, 5056), ("[4k] 5056x3392 (3:2)", 5056, 3392), ("[4k] 3584x4800 (3:4)", 3584, 4800), - ("[4k] 8192x2048 (4:1)", 8192, 2048), + ("[4k] 8256x2048 (4:1)", 8256, 2048), ("[4k] 4800x3584 (4:3)", 4800, 3584), ("[4k] 3712x4608 (4:5)", 3712, 4608), ("[4k] 4608x3712 (5:4)", 4608, 3712), - ("[4k] 12288x1536 (8:1)", 12288, 1536), + ("[4k] 11712x1408 (8:1)", 11712, 1408), ("[4k] 3072x5504 (9:16)", 3072, 5504), ("[4k] 5504x3072 (16:9)", 5504, 3072), ("[4k] 6336x2688 (21:9)", 6336, 2688),