Free plan

Social size pack

Make one picture in every size social networks ask for
POST
/v1/images/social-pack
YouTube thumbnail
Original
OriginalYouTube thumbnail

About this tool

This tool turns one picture into all the sizes that social networks, ads and web pages ask for, such as Instagram, Facebook, X, LinkedIn, YouTube and Pinterest. You choose which sizes you want, or keep all of them. You also choose whether each size fills the space and cuts the edges, shows the whole picture with a border, or stretches it. You can get all sizes together in one ZIP file.
For example, you upload one banner and get the right size for each social network without resizing by hand.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Choose which social networks and sizes you need, or leave all.
  4. Choose how the picture fits and which part is kept.
  5. Press Generate, then download the pictures or the ZIP.

What you get back

You get one picture for every size you chose, each named after its network. Switch on the ZIP option to download them all in one file.
GOOD TO KNOW
Sizes follow what the networks publish and may change. One picture counts as one image; each size is an output.
TEST IT LIVE

Try Social size pack 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/social-pack
Tool ID
images.social-pack
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/social-pack" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'platforms=["instagram-square","og-image"]' \
  -F 'fit=cover' \
  -F 'scale=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.socialPack({
    "images": 'photo.jpg',
    "platforms": "[\"instagram-square\",\"og-image\"]",
    "fit": "cover",
    "scale": 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()->socialPack([
    'images' => 'photo.jpg',
    'platforms' => '["instagram-square","og-image"]',
    'fit' => 'cover',
    'scale' => 1,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make one picture into every size social networks, ads and web pages ask for (Instagram, Facebook, X, LinkedIn, YouTube, Pinterest, TikTok, link previews …), cropped or padded the way you choose, optionally also as one ZIP.

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

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

Send a POST request to /v1/images/social-pack 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.