🖼️Photo Collage & Before/After Combiner Documentation & Guide
📋How to Build a Clean Photo Collage
- Upload 2 to 4 Photos: Select local PNG, JPG, or WebP files (or test with a demo preset).
- Configure Grid, Gap & Matte: Pick Horizontal Row, Vertical Stack, or 2x2 Grid plus spacing and background color.
- Render & Save PNG: Click Build Collage to center-crop each tile evenly and download the combined PNG.
⚙️Uniform Cover-Cropped Canvas Tile Composition▼
Images of varying aspect ratios are center-scaled via cover math (`max(cellW/w, cellH/h)`) and clipped cleanly inside uniform Canvas cells separated by configurable pixel gaps.
📐Formula & Mathematical Architecture▼
TileScale = max(CellWidth / ImgWidth, CellHeight / ImgHeight)
🧮Concrete Worked Examples▼
2 images, Horizontal Row, 16px White Gap1128 x 437 px balanced dual cardBoth images align at identical height with crisp symmetrical borders.
4 images, 2x2 Grid, #131314 matte1128 x 858 px 4-up grid PNGFrames 4 screenshots seamlessly against Google Carbon dark borders.
⚠️Common Pitfalls & Edge Cases▼
- ⚠️Selecting only 1 photo (collages require at least 2 images).
- ⚠️Uploading ultra-wide banners into square cells expecting zero edge cropping (cover-fit crops narrow edges evenly to keep alignment symmetrical).
- ⚠️Setting 0px gap between nearly identical white UI screenshots (adding 8–16px slate matte helps visually separate frames).
💡Visual Comparison & Listing Uses▼
- Creating side-by-side Before/After design, renovation, or UI screenshots.
- Combining 4 product angles into one clean image for marketplace listings.