← Back to Home

How to Calculate 3x3 Grid Dimensions for Image Generation

Updated March 5, 2026
griddimensionsimage generationalgorithmaspect ratio

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)

Long (16:9)

Return Shape

{
  gridSize: '3072x5504',
  cellSize: '1024x1835',
  width: 3072,
  height: 5504,
  cellWidth: 1024,
  cellHeight: 1835
}

Usage

Use these dimensions for: