Skip to content

Commit f0d9952

Browse files
committed
feat: add aspect ratio support
Adds support for aspect ratio configuration in image generation and story commands.
1 parent 74b36b6 commit f0d9952

6 files changed

Lines changed: 651 additions & 611 deletions

File tree

GEMINI.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Always respect user-specified design preferences:
1919

2020
- **`--styles`**: Apply the exact artistic styles requested (watercolor, oil-painting, sketch, photorealistic, etc.)
2121
- **`--variations`**: Implement the specific variation types (lighting, angle, color-palette, composition, mood, season, time-of-day)
22+
- **`--aspect-ratio`**: Strictly adhere to the requested aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9, 21:9, 3:2, 2:3, 5:4, 4:5).
2223
- Maintain the essence of the original prompt while applying the requested stylistic changes
2324
- When multiple styles are requested, ensure each image distinctly represents its assigned style
2425

commands/generate.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Valid options:
66
- --count=N (1-8, default: 1)
77
- --styles="style1,style2" (photorealistic, watercolor, oil-painting, sketch, pixel-art, anime, vintage, modern, abstract, minimalist)
88
- --variations="var1,var2" (lighting, angle, color-palette, composition, mood, season, time-of-day)
9+
- --aspect-ratio="16:9" (1:1, 3:4, 4:3, 9:16, 16:9, 21:9, 3:2, 2:3, 5:4, 4:5)
910
- --format=grid|separate (default: separate)
1011
- --seed=123 (integer)
1112
- --preview (flag)
@@ -19,7 +20,7 @@ Parse this input and:
1920
4. If valid, call the generate_image tool with the parsed parameters
2021
2122
If you find invalid options, respond with:
22-
"Error: Invalid option(s) found: [list invalid options]. Valid options are: --count (1-8), --styles (comma-separated list from: photorealistic, watercolor, oil-painting, sketch, pixel-art, anime, vintage, modern, abstract, minimalist), --variations (comma-separated list from: lighting, angle, color-palette, composition, mood, season, time-of-day), --format (grid or separate), --seed (integer), --preview (flag)"
23+
"Error: Invalid option(s) found: [list invalid options]. Valid options are: --count (1-8), --styles (comma-separated list from: photorealistic, watercolor, oil-painting, sketch, pixel-art, anime, vintage, modern, abstract, minimalist), --variations (comma-separated list from: lighting, angle, color-palette, composition, mood, season, time-of-day), --aspect-ratio (1:1, 3:4, 4:3, 9:16, 16:9, 21:9, 3:2, 2:3, 5:4, 4:5), --format (grid or separate), --seed (integer), --preview (flag)"
2324
2425
Otherwise, call generate_image with the validated parameters.
2526
"""

commands/story.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Valid options:
66
- --steps=N (2-8, default: 4)
77
- --type="story|process|tutorial|timeline" (default: story)
88
- --style="consistent|evolving" (default: consistent)
9+
- --aspect-ratio="16:9" (1:1, 3:4, 4:3, 9:16, 16:9, 21:9, 3:2, 2:3, 5:4, 4:5)
910
- --layout="separate|grid|comic" (default: separate)
1011
- --transition="smooth|dramatic|fade" (default: smooth)
1112
- --format="storyboard|individual" (default: individual)
@@ -21,7 +22,7 @@ Parse this input and:
2122
5. If valid, call the generate_story tool with the parsed parameters
2223
2324
If you find invalid options, respond with:
24-
"Error: Invalid option(s) found: [list invalid options]. Valid options are: --steps (2-8), --type (story, process, tutorial, timeline), --style (consistent, evolving), --layout (separate, grid, comic), --transition (smooth, dramatic, fade), --format (storyboard, individual), --preview (flag)"
25+
"Error: Invalid option(s) found: [list invalid options]. Valid options are: --steps (2-8), --type (story, process, tutorial, timeline), --style (consistent, evolving), --aspect-ratio (1:1, 3:4, 4:3, 9:16, 16:9, 21:9, 3:2, 2:3, 5:4, 4:5), --layout (separate, grid, comic), --transition (smooth, dramatic, fade), --format (storyboard, individual), --preview (flag)"
2526
2627
Otherwise, call generate_story with the validated parameters.
2728
"""

0 commit comments

Comments
 (0)