feat(api): change default aspect ratio from 1:1 to 16:9
Update default aspect ratio for image generation to 16:9 widescreen format, matching common display resolutions and user expectations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ef47653296
commit
3d18fcfeb5
|
|
@ -34,7 +34,7 @@ export class ImageGenService {
|
|||
// Use default values if not provided
|
||||
const finalOrgSlug = orgSlug || process.env['DEFAULT_ORG_SLUG'] || 'default';
|
||||
const finalProjectSlug = projectSlug || process.env['DEFAULT_PROJECT_SLUG'] || 'main';
|
||||
const finalAspectRatio = aspectRatio || '1:1'; // Default to square
|
||||
const finalAspectRatio = aspectRatio || '16:9'; // Default to widescreen
|
||||
|
||||
// Step 1: Generate image from Gemini AI
|
||||
let generatedData: GeneratedImageData;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export const IMAGE_LIMITS = {
|
|||
export const GENERATION_LIMITS = {
|
||||
MAX_PROMPT_LENGTH: 5000,
|
||||
MAX_RETRY_COUNT: 3,
|
||||
DEFAULT_ASPECT_RATIO: '1:1',
|
||||
DEFAULT_ASPECT_RATIO: '16:9',
|
||||
ALLOWED_ASPECT_RATIOS: ['1:1', '16:9', '9:16', '3:2', '2:3', '4:3', '3:4'] as const,
|
||||
} as const;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue