Social Media Image Resizer: Instagram, Facebook & LinkedIn avatar

Social Media Image Resizer: Instagram, Facebook & LinkedIn

Pricing

from $3.20 / 1,000 image preset outputs

Go to Apify Store
Social Media Image Resizer: Instagram, Facebook & LinkedIn

Social Media Image Resizer: Instagram, Facebook & LinkedIn

Resize images to social media sizes in bulk: image URLs in, Instagram, Facebook, LinkedIn, X, YouTube, Pinterest and OG files out with signed links. Fit by crop, pad or blur-pad. Direct image files only; no face detection, no posting, no web pages.

Pricing

from $3.20 / 1,000 image preset outputs

Rating

0.0

(0)

Developer

Data Done Right

Data Done Right

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Use this social media image resizer to resize images for Instagram, Facebook, LinkedIn, X, YouTube, Pinterest and Open Graph from a list of image URLs. Paste direct image links, tick the sizes you need, and get one exact-size file per image and preset, each with a signed download link. Crop to fill, pad with a color, or pad with a blurred copy of the image.

What it does NOT do (read this first)

  • It takes direct links to image files, not web pages, and it does not read, scrape or post to Instagram, Facebook, LinkedIn or any other social platform. Page URLs are reported as failed; links on those platforms' own pages are not supported.
  • It does not detect faces or subjects. A crop keeps a fixed part of the picture (center, top, bottom, left or right). Check the output when a face is near the edge, or use contain or blur-pad, which crop nothing.
  • No HEIC/HEIF, SVG, PDF or RAW input. Readable inputs: JPEG, PNG, WebP, AVIF, GIF, BMP, TIFF. Output is JPEG, PNG or WebP. Animations keep only their first frame.
  • It does not add text, logos, borders or captions, and does not make images sharper. A small image enlarged to a big preset can look soft (the row's note says so).
  • The preset sizes are the commonly published ones. Platforms change their recommendations; use customSizes for any other size.
  • It honours the host's robots.txt and does not log in, use proxies or work around hotlink protection. A 401, 403 or 429 from the host is reported as failed.
  • Images above 64 megapixels and files above your source size limit (25 MB by default, 100 MB at most) are refused.

What you get

  • One dataset row per image and preset: signed download link, exact width and height, format, bytes, fit, status and a plain-language note.
  • The files in the run's key-value store (kept as long as the run's storage is kept).
  • A SUMMARY record with totals, and a FAILED record that lists every image that failed and why.

Presets

Preset keySize (px)Use
instagram-square1080 x 1080Instagram post, 1:1
instagram-portrait1080 x 1350Instagram post, 4:5
instagram-landscape1080 x 566Instagram post, 1.91:1
instagram-story1080 x 1920Instagram Story or Reel, 9:16
facebook-post1200 x 630Facebook link or image post
facebook-cover820 x 312Facebook page cover photo
linkedin-post1200 x 627LinkedIn post or link image
linkedin-cover1584 x 396LinkedIn profile banner, 4:1
x-post1600 x 900X (Twitter) post image, 16:9
x-header1500 x 500X (Twitter) profile header, 3:1
youtube-thumbnail1280 x 720YouTube thumbnail, 16:9
pinterest-pin1000 x 1500Pinterest pin, 2:3
og-image1200 x 630Open Graph og:image link preview

Add any other exact size with customSizes (for example 1000x1000, each side 16 to 8000 px).

How to resize an image for Instagram, Facebook and LinkedIn at once

  1. Paste the image links in Image URLs, one per line.
  2. Tick the Presets you need, for example instagram-square, facebook-post and linkedin-post.
  3. Leave Fit mode on cover to fill every frame, or choose blur-pad to keep the whole image.
  4. Run it. Each dataset row has the url of one file at the exact preset size.

How to resize an image without cropping it

Set fit to contain (pads with backgroundColor) or blur-pad (pads with a blurred, enlarged copy of the same image, the look used for stories and reels). The whole picture stays visible in the new frame. Example: a 4:3 photo in instagram-story with blur-pad shows the photo in the middle and a soft blur above and below.

How to choose what gets cropped

With fit: "cover" the image is scaled until it fills the frame and the overflow is cut. cropFocus picks which part stays: center (default), top (keeps heads in portraits), bottom, left or right. It is a fixed position, not subject detection.

How to make Open Graph (og:image) images in bulk

Use the og-image preset (1200 x 630). For a blog or a shop, send the image URLs, keep outputFormat on jpeg, and use the url of each row as the og:image value. Files stay available as long as the run's storage is kept; for permanent hosting download them to your own server or CDN.

Input example

{
"urls": [
"https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg",
"https://interactive-examples.mdn.mozilla.net/media/cc0-images/elephant-660-480.jpg"
],
"presets": ["instagram-square", "og-image"]
}

More examples:

  • {"presets": ["instagram-story"], "fit": "blur-pad"} : story size, whole image on a blurred background.
  • {"presets": ["youtube-thumbnail", "x-post"], "cropFocus": "top", "outputFormat": "webp"} : 16:9 crops keeping the top, as WebP.
  • {"presets": [], "customSizes": ["1000x1000", "600x315"]} : custom sizes only.

Input

FieldDefaultWhat it does
urls (required)two sample imagesDirect image links, one per line
presets (required)instagram-square, og-imageWhich sizes to produce (table above)
customSizesnoneExtra exact sizes as WIDTHxHEIGHT, one per line
fitcovercover (crop), contain (pad with a color), blur-pad (pad with a blurred copy)
cropFocuscentercenter, top, bottom, left, right
backgroundColor#ffffffPadding color for contain, and replaces transparency in JPEG
allowUpscaleonOn: always exact size, small sources are enlarged. Off: small sources are padded instead
outputFormatjpegjpeg, png (keeps transparency in cover) or webp
quality901-100 for JPEG and WebP
stripMetadataonRemove EXIF/GPS and the color profile (orientation is applied first)
maxOutputs100Most files delivered and charged in the run (up to 5,000); extra images are skipped, not charged
maxSourceSizeMb25Skip larger source files (up to 100)
concurrency4Images processed in parallel (1-16)

Output

One dataset row per image and preset. This row comes from a real local run of the example above (the link shown is the form it takes on the Apify platform, where it also carries a signature):

{
"index": 1,
"sourceUrl": "https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg",
"preset": "og-image",
"presetLabel": "Open Graph / link preview image (og:image)",
"fileName": "grapefruit-slice-332-332-og-image.jpg",
"url": "https://api.apify.com/v2/key-value-stores/<storeId>/records/grapefruit-slice-332-332-1-og-image-faea4d83c3.jpg?signature=...",
"format": "jpg",
"width": 1200,
"height": 630,
"fit": "cover",
"originalFormat": "jpg",
"widthBefore": 332,
"heightBefore": 332,
"originalBytes": 18122,
"outputBytes": 97142,
"status": "delivered",
"error": null,
"note": "source 332x332 is smaller than 1200x630: enlarged, so it may look soft"
}
  • status: delivered (file made, charged), skipped (duplicate URL, maxOutputs, robots.txt, spending limit, SVG, address not allowed; not charged) or failed (download error, not an image, too many pixels; not charged). error says why.
  • An image that cannot be read gives one row with preset: null; a preset that fails gives a failed row for that preset only.

How much does it cost

Pay per event: $0.004 per preset file delivered (event image-preset-output, $4.00 per 1,000 files), plus the normal Apify platform usage of the run, which is small. Note the unit: one image resized to 4 presets is 4 files. Skipped and failed images are free, and there is no start fee.

  • 100 images x 3 presets = 300 files: $1.20
  • 1,000 images x 4 presets = 4,000 files: $16.00
  • 10,000 images x 1 preset = 10,000 files: $40.00 (run in batches of up to 5,000 files per run)

Set a maximum spending limit on the run: it stops cleanly when reached and the rest are reported as skipped.

Use cases

  • Post one product or event image to Instagram, Facebook, LinkedIn and X without opening an editor.
  • Make og:image and Twitter-card images for every page of a blog or shop.
  • Prepare YouTube thumbnails and channel art at the right size.
  • Turn landscape photos into 9:16 story images with a blurred background.
  • Add a resize step to a pipeline: another Actor or an AI agent passes image URLs and reads the links from the dataset.

FAQ

Does it post to my social accounts? No. It only makes the image files. It does not log in to, read or post to any social platform.

Are the sizes the official ones? They are the widely published recommended sizes (for example 1080 x 1080 for an Instagram square post and 1200 x 630 for Open Graph). Platforms change their guidance and crop differently in different views, so check the current rules and use customSizes when you need another size.

Will faces be cropped out? Possibly: cover cuts the overflow around a fixed focus point and has no face detection. Use cropFocus: "top" for portraits, or contain / blur-pad, which keep the whole image.

What if my image is smaller than the preset? With allowUpscale on (default) it is enlarged to the exact size and the note says it may look soft. With it off it is never enlarged and is padded with the background color.

What happens to transparency? It is kept for PNG and WebP in cover. In contain and blur-pad the padding is solid or blurred, so the result has no transparency. JPEG cannot store transparency; transparent areas are filled with backgroundColor.

What happens to a URL that robots.txt disallows? It is skipped with the reason and not charged. If a host's robots.txt cannot be read because of a server error, its images are skipped too rather than guessed.

Use with the Apify API, MCP, n8n and Make

Python:

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("<username>/social-image-resizer").call(run_input={
"urls": ["https://example.com/photo.jpg"],
"presets": ["instagram-square", "linkedin-post"],
"fit": "blur-pad",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["preset"], row["status"], row["url"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('<username>/social-image-resizer').call({
urls: ['https://example.com/photo.jpg'],
presets: ['instagram-square', 'linkedin-post'],
fit: 'blur-pad',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.preset, r.status, r.url]));

The same input works from the Apify MCP server (an AI agent calls the Actor with image URLs and a list of presets), from n8n and from Make through their Apify modules.

  • Batch Image Converter & Resizer: WebP, AVIF, PNG & JPEG : convert and resize to any format and size, with a file size target.
  • Image Compressor & Resizer: Compress Images in Bulk : shrink images and keep the original format.
  • Background Remover for Images (rembg, CPU) : cut out the subject first, then place it in a social size.
  • Download Images from URLs: Bulk Image & File Downloader : collect the images from pages first, then resize them here.