Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(image-backends): correct Qwen 2K ratios, Ark base URL, Replicate 21:9

hugohe306d8f0a137ed
diff --git a/skills/ppt-master/scripts/image_backends/backend_qwen.py b/skills/ppt-master/scripts/image_backends/backend_qwen.py
index 0de8a4ea..c4e9169a 100644
--- a/skills/ppt-master/scripts/image_backends/backend_qwen.py
+++ b/skills/ppt-master/scripts/image_backends/backend_qwen.py
@@ -73,8 +73,8 @@ ASPECT_RATIO_SIZE_MAP = {
},
"2K": {
"1:1": "2048*2048",
- "2:3": "1536*2048",
- "3:2": "2048*1536",
+ "2:3": "1664*2496",
+ "3:2": "2496*1664",
"3:4": "1728*2368",
"4:3": "2368*1728",
"4:5": "1792*2240",
diff --git a/skills/ppt-master/scripts/image_backends/backend_replicate.py b/skills/ppt-master/scripts/image_backends/backend_replicate.py
index 2b2bc9b3..aa7c99fd 100644
--- a/skills/ppt-master/scripts/image_backends/backend_replicate.py
+++ b/skills/ppt-master/scripts/image_backends/backend_replicate.py
@@ -43,7 +43,7 @@ from image_backends.backend_common import (
)
-VALID_ASPECT_RATIOS = ["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4", "21:9"]
+VALID_ASPECT_RATIOS = ["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4"]
DEFAULT_BASE_URL = "https://api.replicate.com/v1"
DEFAULT_MODEL = "black-forest-labs/flux-1.1-pro"
SUPPORTED_MODELS = {DEFAULT_MODEL}
diff --git a/skills/ppt-master/scripts/image_backends/backend_volcengine.py b/skills/ppt-master/scripts/image_backends/backend_volcengine.py
index 1cc0d7a1..327deb4c 100644
--- a/skills/ppt-master/scripts/image_backends/backend_volcengine.py
+++ b/skills/ppt-master/scripts/image_backends/backend_volcengine.py
@@ -86,7 +86,7 @@ def _resolve_url(base_url: str) -> str:
base = base_url.rstrip("/")
if base.endswith("/images/generations"):
return base
- if base.endswith("/api/v1"):
+ if base.endswith(("/api/v1", "/api/v3")):
return base + "/images/generations"
return base + "/api/v1/images/generations"