3x3 Grid Dimension Algorithm
For a 3x3 image grid, compute full grid size and per-cell crop size from videoType and imageSize.
Mapping
Short (9:16)
- 1K: grid
768x1376, cell256x459 - 2K: grid
1536x2752, cell512x917 - 4K: grid
3072x5504, cell1024x1835
Long (16:9)
- 1K: grid
1376x768, cell459x256 - 2K: grid
2752x1536, cell917x512 - 4K: grid
5504x3072, cell1835x1024
Return Shape
{
gridSize: '3072x5504',
cellSize: '1024x1835',
width: 3072,
height: 5504,
cellWidth: 1024,
cellHeight: 1835
}
Usage
Use these dimensions for:
- generation request config
- post-generation crop math
- metadata validation