Tools API Blog
Sign in Create account

Image collage

Image collage is an API that combines several photos into one, in a grid (contact-sheet style). Each image is fitted inside its cell without cropping or distorting it.

How it works

You send an array of images (2 to 30) and get back one image with all of them arranged in a grid. The number of columns is calculated automatically (as close to square as possible) if you don't set it.

All you need

  • Your API key. Create it in your dashboard with "+ Create key".
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream…).

How to use it in n8n

  • Method: POST · URL: https://api.cofferdock.com/image-collage
  • Send Headers: x-api-key = your key, Content-Type = application/json
  • Send Body (JSON): { "images": ["<base64 1>", "<base64 2>", "<base64 3>"] }
  • In Options → Response → Response Format: choose File

Options

OptionDefaultWhat it does
images-Required. Array of 2 to 30 base64 images.
columnsautomaticHow many columns.
cell_width, cell_height400Each cell's size in pixels.
gap10Spacing in pixels between images and at the edge.
background#ffffffBackground color in cells and gaps.

What you get back

By default (JSON): image as base64. Add output=image for the raw binary, or output=url for a temporary link.