Photos in, rectangles out
Loaded images sit in an array and a layout function turns that array into cell rectangles with row, column and span numbers. Column bands and row bands are the output size minus the gaps, then each photo is drawn into its cell and clipped to it. Nothing is uploaded.
Auto grid walks down from the square root of the photo count and stops at the first column number that divides it evenly, so awkward counts end up one-wide.
A worked example
Load a sample, which supplies eight 600 by 600 photos, and auto layout returns 2 columns and 4 rows on the default square 1200 by 1200 output. With the 12 px gap each cell measures 582 × 285, the layout tile reads 2 × 4, and the file-size tile estimates the PNG shortly after the last change. Six photos give 3 columns and 2 rows at 384 × 582; three give 2 columns and 2 rows, leaving one cell empty with the short last row centred.
Controls that affect one photo
Selecting a thumbnail opens a panel with a zoom slider from 1.00 to 3.00, a per-photo fit override and a reset button. Dragging on the canvas shifts that photo inside its cell by a fraction of the cell width, clamped between -1 and 1, so you can pull a face back after a cover crop. A blue dot marks an adjusted thumbnail. The remaining controls are the layout, one of eight named output sizes or a custom box clamped to 100-6000 px, gap to 80 px, radius to 80 px, two colours and the photo-fit switch.
Where it stops
- Cells are sized by photo count, not by the aspect ratios you loaded, so portraits lose headroom in a short cell.
- A gap larger than the cells can carry is silently reduced.
- Output is a single PNG named
collage.png: no JPEG option, no ZIP of cells. - No captions or per-cell resizing, and dropped files have no size limit at all.
Questions people ask
Why is my subject cut off?
Crop to fill scales the photo until the cell is covered. Select it, drag it back into frame, or set its override to fit the whole photo, which leaves the cell backdrop showing.
Should I prepare images first?
Matching aspect ratios gives a tidier grid: use crop-image to square portraits, image-resizer to level pixel sizes, and resize-image-for-instagram when the result must fit a feed.