Free plan

Grid

Arrange several pictures into rows and columns of equal size
POST
/v1/images/grid

About this tool

Puts several pictures into a tidy grid where every cell is the same size, like a tiled wall of photos. You can choose the number of columns, the size of each cell, the space between them and the background colour. It takes up to 100 pictures.
For example, you combine four product photos into one square picture.

How to use it

  1. Choose this tool.
  2. Add your pictures with Upload or drag and drop (up to 100).
  3. Set the number of columns, the cell size and the spacing.
  4. Press Generate.
  5. Download your grid picture.

What you get back

You get one new picture with all your photos in a grid, ready to download.
TEST IT LIVE

Try Grid in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/grid
Tool ID
images.grid
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/grid" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'cols=1' \
  -F 'cellWidth=1' \
  -F 'cellHeight=1'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.grid({
    "images": 'photo.jpg',
    "cols": 1,
    "cellWidth": 1,
    "cellHeight": 1
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->grid([
    'images' => 'photo.jpg',
    'cols' => 1,
    'cellWidth' => 1,
    'cellHeight' => 1,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Arrange several pictures into rows and columns of equal size.

Grid accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Grid is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/grid with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.