Birthday Collage Editor SDK

Birthday collages with the age as a photo frame, in your print shop

Photo print shops and party apps can offer a collage where the photos fill a big number. Your users type a new age in the editor, and the photos take the shape of the new digits.

Available for
Web
Mobile
Desktop
Server

Trusted by 100+
industry leaders

Digitas
Omneky
The Print Bar
Brandwatch
Planoly
HP
Shopify
Reuters
Hootsuite
Semrush
Shutterfly
one.com
Sprout Social
Constant Contact
Spread Group

The age as a window onto the photos

The template holds two layers: a group of party photos and a text layer with the age. The text is set as the group’s track matte, so the group shows only where the digits are drawn and the text itself never prints. Both are saved with the template, so users open a finished collage and never set anything up.

Three tiles in a row: six party photos in a grid of two columns and three rows, then a plus sign and a black 30, then an equals sign and the finished collage, where the photos appear only inside the 30 above the words Happy birthday

A new age is a text edit

In the web editor, users pick the number in the Layers panel and click Edit. Every digit they type reshapes the collage straight away, and when 30 becomes 31 the new digit shows whichever photos sit behind the narrower 1.

The editor with the 31 layer selected in the Layers panel and the text toolbar open. The 3 still shows the balloons, a gift box and the lit candles, and the new 1 shows a narrow strip of the cake, the party table and the pastel balloons

A double-click reaches the photo behind a digit

One click on the collage selects the whole photo group. A double-click inside a digit selects the single photo under that spot and brings up its menu with Replace, so users put their own picture there and the number keeps its shape. The selection outline shows the photo’s full frame, including the parts the number hides.

The editor with the balloon photo selected after a double-click inside the 3. Its outline covers the top left of the photo group, a dashed line marks the whole group, and the menu under it offers BG Removal, Select Group and Replace

Heavier fonts show more of the photos

The matte follows the text in whatever typeface it is set in, so picking another font from the text toolbar also changes the cut of the collage. Heavy faces leave the most room for the photos, while a face with thin strokes, like the middle one here, turns parts of each digit into narrow slivers. Your designers make the photo group wider than the widest font you offer, so no part of a digit reaches past the photos onto the empty page.

The same collage three times in different typefaces: a slanted 30 in Shrikhand, a 30 in Abril Fatface with thin hairline strokes, and a wide slab 30 in Ultra, each filled with the six party photos above the words Happy birthday

The age frame, built into your birthday templates

Your developers add the frame to a birthday design with a few engine calls: the party photos go into a group, the age goes on top as text, and the text becomes the group’s matte. The age stays ordinary text, so your platform can fill it in from a field on your order form. The same calls exist on the web, on iOS and Android and in Node.js.

Party photos inside the age, set up in the template
const [page] = engine.block.findByType('page');
const photos = engine.block.getChildren(page).filter((id) => engine.block.getKind(id) === 'image');
const group = engine.block.group(photos);

const { assets } = await engine.asset.findAssets('ly.img.typeface', { page: 0, perPage: 100 });
const { typeface } = assets.find((a) => a.label === 'Poppins').payload;
const heavy = typeface.fonts.find((f) => f.weight === 'heavy' && f.style === 'normal');

const age = engine.block.create('text');
engine.block.replaceText(age, '30');
engine.block.setFont(age, heavy.uri, typeface);
engine.block.setFloat(age, 'text/fontSize', 420);
engine.block.appendChild(page, age);

// Show the photos only where the digits are drawn
engine.block.setMatte(group, age, 'Alpha');
Get in touch

Put the party photos inside the age

Tell us which print sizes you sell and which birthday collages your users order, and we’ll get back to you with a custom quote for your use case.

Birthday collage FAQs

Shops that sell cards as well as prints can see a card designed together with its envelope on the birthday card editor SDK page.

It is an editor inside your photo print shop or party app, so your users design the birthday collage right where they order it. CE.SDK can put the party photos inside the age number, and users change the age or swap a photo before they order.

A JPEG or PNG that the engine renders at the full size of the page, so a 10 by 7.5 inch page set to 300 dpi exports at 3000 by 2250 pixels. SVG export leaves the matte out. In a PDF the matte becomes a soft mask that some PDF viewers ignore, so proof a PDF with your lab before you send collages that way.

Yes. In the web editor they pick the number in the Layers panel, click Edit and type the new age.

They stay in the template, out of sight. The export shows only what sits inside the digits, so each photo can be larger than the digit it fills, and a narrow digit like a 1 still has photos behind it.

The docs mark masks and mattes as experimental, which means the calls may change in a minor release. Your developers pin the CE.SDK version they test with and check the collage again before each upgrade.