Free plan
Grid
Arrange several pictures into rows and columns of equal size
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
- Choose this tool.
- Add your pictures with Upload or drag and drop (up to 100).
- Set the number of columns, the cell size and the spacing.
- Press Generate.
- 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.
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;More in Images
