Skip to content

How to resize one image for all social media sizes on Windows, without cutting off the subject

Sizes from each network's own help page, read 30 November 2026; a Python script and Social Resize Pro made every copy around the subject, with no metadata left.

We make Social Resize Pro, the app this guide uses. The free methods come first; every step shown in Social Resize Pro was checked in the app itself, and the screenshots come from the real app with invented sample data.

Short answer

Crop each copy to the network's shape around the subject, then scale it to the exact size. The networks' own help pages give sizes for only some formats: for example 1080 pixels wide for Instagram photos, 1500 by 500 for an X header, 2560 by 1440 for a YouTube channel banner and 1000 by 1500 for a Pinterest pin. A free Python script with Pillow makes every size in one run around a point you choose, converts the colours to sRGB and writes no metadata. Social Resize Pro does the same with a preview: one click on the subject sets the focus point for every format, the preview shades the approximate bands and round masks that cover the picture, and the export writes one folder per network.

The sizes the networks publish

Size lists online rarely say where their numbers come from, and they disagree. These are the values on each network's own help pages, which we read on 30 November 2026. They change; check the page before a campaign.

  • Instagram keeps a photo at its resolution when it is 320 to 1080 pixels wide and its shape is between 1.91:1 and 3:4, that is 1080 pixels wide and 566 to 1440 high, its help page says. Other shapes are cropped, smaller photos are enlarged to 320 pixels wide and larger ones reduced to 1080. A 4:5 portrait of 1080 by 1350 is inside that range.
  • Facebook Pages: the profile picture is cropped to a circle and should be 320 by 320 pixels; the cover must be at least 400 by 150, and the page recommends an sRGB JPG of 851 by 315 under 100 kilobytes for quick loading, Facebook's page says. On phones the cover is left-aligned at 2.4:1 and the profile picture overlaps it by about 40 pixels, so its left-hand side is partly covered. For a logo or text, the page suggests a PNG file.
  • X recommends 400 by 400 for the profile photo (JPEG, GIF or PNG under 2 MB) and 1500 by 500 for the header, and warns that 60 pixels at the top and bottom of the header could be cropped on some screens and browsers (X Help Center).
  • LinkedIn Pages: logo 400 by 400 (268 by 268 at least), cover 1512 by 256, PNG or JPEG of 3 MB at most (LinkedIn Help). That page covers company pages, not personal profiles.
  • YouTube: the channel banner should be 2560 by 1440 (2048 by 1152 at least, 16:9, 6 MB or smaller) with text and logos inside a safe area of 1235 by 338 at the minimum size, because the rest gets cropped on some views and devices (channel branding); the profile picture renders at 98 by 98. Custom video thumbnails: 3840 by 2160 recommended, 640 pixels wide at least, JPG or PNG, 16:9, up to 50 MB (custom thumbnails).
  • Pinterest recommends 2:3, or 1000 by 1500 pixels, on its ad specs page, PNG or JPEG up to 20 MB from a computer and 32 MB in the app; taller pins might get cut off in feeds.

What none of these pages gives: a pixel size or a safe area for ordinary stories. Meta's specs for Instagram Stories image ads ask for 9:16 at 1440 by 2560 and suggest keeping roughly 14% of the top, 35% of the bottom and 6% of each side free of text and logos; that is for ads. The 1080 by 1920 story size in common use, TikTok photos, X post images, Facebook feed posts and stories, Instagram profile pictures and personal LinkedIn photos have no official size on the help pages we found: treat the values in size guides as approximate.

Method 1 (free): one Pillow script for every size

A resizer that makes one size per run, or crops from a fixed place, can cut off a subject who is not in the middle. This Python script crops each picture to every shape around a point you give, as fractions of its width and height (0.72 is 72% from the left), scales the crop to the exact size, converts an embedded colour profile, such as Display P3, to sRGB, flattens transparency onto white and saves a JPEG with no EXIF, GPS or profile data. When a copy is over its size limit it lowers the JPEG quality from 90 in steps of 5 to 60, and it flags copies that had to be enlarged. It needs Python and Pillow (py -m pip install Pillow).

"""Crop every picture in a folder to the sizes the networks' help pages give, plus the common 1080x1920 story size,
around a focus point you choose.
Usage: py social_sizes.py <pictures folder> <empty output folder> ["name.jpg=0.72,0.43" ...]"""
import sys
from io import BytesIO
from pathlib import Path

from PIL import Image, ImageCms, ImageOps

SIZES = [  # folder, name, width, height, size limit in KB (0 = none)
    ("Instagram", "post 4x5", 1080, 1350, 0),
    ("Instagram", "story 9x16", 1080, 1920, 0),     # common practice: no official pixel size for stories
    ("Facebook", "page cover", 851, 315, 100),       # under 100 KB for quick loading
    ("X", "header", 1500, 500, 0),
    ("X", "profile photo", 400, 400, 2000),
    ("LinkedIn", "page cover", 1512, 256, 3000),
    ("YouTube", "channel banner", 2560, 1440, 6000),
    ("Pinterest", "standard pin", 1000, 1500, 20000),
]


def crop_box(w, h, tw, th, fx, fy):
    """The largest box of the target shape, centred on the focus point as far as the picture allows."""
    cw, ch = (w, round(w * th / tw)) if w * th <= h * tw else (round(h * tw / th), h)
    left = min(max(round(fx * w - cw / 2), 0), w - cw)
    top = min(max(round(fy * h - ch / 2), 0), h - ch)
    return left, top, left + cw, top + ch


def open_srgb(path):
    with Image.open(path) as im:
        icc = im.info.get("icc_profile")
        im = ImageOps.exif_transpose(im)                 # upright, as the camera meant
        if im.mode in ("RGBA", "LA", "P"):              # transparency: white background
            im = im.convert("RGBA")
            flat = Image.new("RGB", im.size, (255, 255, 255))
            flat.paste(im, mask=im.getchannel("A"))
            im = flat
        im = im.convert("RGB")
        if icc:                                          # e.g. Display P3 from a phone: convert to sRGB
            im = ImageCms.profileToProfile(im, ImageCms.ImageCmsProfile(BytesIO(icc)),
                                           ImageCms.createProfile("sRGB"), outputMode="RGB")
        return im


def save_jpeg(im, path, limit_kb):
    for quality in range(90, 55, -5):                   # 90, 85, ... 60 until it fits
        buf = BytesIO()
        im.save(buf, "JPEG", quality=quality, optimize=True)    # no exif= and no icc_profile=: no metadata
        if not limit_kb or buf.tell() <= limit_kb * 1000:
            break
    path.write_bytes(buf.getvalue())
    return quality, buf.tell()


source, out = Path(sys.argv[1]), Path(sys.argv[2])
focus = {name: tuple(map(float, xy.split(","))) for name, xy in (a.rsplit("=", 1) for a in sys.argv[3:])}
for f in sorted(source.iterdir()):
    if f.suffix.lower() not in {".jpg", ".jpeg", ".png", ".webp", ".tif", ".tiff"}:
        continue
    picture = open_srgb(f)
    fx, fy = focus.get(f.name, (0.5, 0.5))
    for network, name, tw, th, kb in SIZES:
        box = crop_box(*picture.size, tw, th, fx, fy)
        copy = picture.crop(box).resize((tw, th), Image.LANCZOS)
        (out / network).mkdir(parents=True, exist_ok=True)
        quality, size = save_jpeg(copy, out / network / f"{f.stem} - {name} {tw}x{th}.jpg", kb)
        notes = [f"quality {quality}"] + (["over the limit"] if kb and size > kb * 1000 else []) \
            + ([f"enlarged {tw / (box[2] - box[0]):.2f}x"] if box[2] - box[0] < tw else [])
        print(f"{network}/{f.stem} - {name} {tw}x{th}: {size:,} bytes, {', '.join(notes)}")

We ran it on 30 November 2026 (Python 3.11.9, Pillow 12.2.0, Windows 11) on copies of three invented test pictures: a 3000 by 2000 photo of a market stall with the baker at the right, tagged with a test colour profile that has Display P3's primaries and a gamma of 2.2, and carrying a camera name, a caption and a GPS position; the stall's round logo on a transparent background; and a flat colour square with the same test profile. The command, run in the folder that holds the script and a pictures folder, and the photo's 8 lines, the last of the 24 it printed:

py -3 -I social_sizes.py pictures out "stall photo.jpg=0.717,0.43" "logo.png=0.5,0.45"
Instagram/stall photo - post 4x5 1080x1350: 45,487 bytes, quality 90
Instagram/stall photo - story 9x16 1080x1920: 53,115 bytes, quality 90
Facebook/stall photo - page cover 851x315: 25,185 bytes, quality 90
X/stall photo - header 1500x500: 41,955 bytes, quality 90
X/stall photo - profile photo 400x400: 14,593 bytes, quality 90
LinkedIn/stall photo - page cover 1512x256: 7,643 bytes, quality 90
YouTube/stall photo - channel banner 2560x1440: 106,081 bytes, quality 90
Pinterest/stall photo - standard pin 1000x1500: 44,594 bytes, quality 90

The two 1200 by 1200 pictures printed 16 more lines, with "enlarged" on the 6 copies of each that are bigger than the part of the picture they come from (1.12 to 2.13 times). We read the 24 copies back: each has its exact size, none carries EXIF, GPS or a colour profile, and the colour square came out as sRGB 213, 116, 71, where the published Display P3 to sRGB matrix, applied with the test profile's gamma of 2.2, gives 213, 116, 70. A real Display P3 profile uses the sRGB tone curve instead, which would shift these numbers by one or two. On a 3000 by 2000 picture of random noise, the Facebook cover went down to quality 85 to fit under 100 KB (94,791 bytes). The script does not show you the crops; open a few copies before you post them.

Microsoft's free PowerToys Image Resizer also resizes from File Explorer, one preset size per run: its page describes presets that Fill (crop as needed), Fit or Stretch, a file name format that can put each size in its own folder, and a command line with an option to strip metadata. The page does not say which part a Fill crop keeps, and there is no focus point. We did not run it.

Method 2: every format at once with Social Resize Pro

Social Resize Pro is our Windows app for this job. It has presets for common post, story, cover and profile sizes, a crop preview that shades the bands and round masks known for some formats (approximate where the network publishes no values), a crop you can adjust per format, and an export to a folder per network that keeps the originals. It runs offline, and the presets can be edited when networks change their sizes. The screenshots below come from version 1.0.0 (evaluation build), with the same invented pictures.

  1. Add the pictures with Add pictures or Add folder. The three were listed as Ready with their sizes in pixels.
  2. Tick the formats. We ticked seven of the 26: Instagram post 4:5 and story, X header and profile photo, LinkedIn page cover, YouTube channel banner and Pinterest standard pin. Selecting a format shows its size and its note: whether the size is official (with the help page) or common practice, and the day it was checked.
  3. Click the subject. One click on the baker set the focus point for every format; the story, banner and page cover crops all kept him in view, and the result caption said "focus point in the visible area". You can drag a format's frame or zoom to change only that crop.
  4. Check the bands and masks. The story preview shades the top bar and the reply box, marked approximate ("Instagram publishes no exact values"). The YouTube banner lights the centre 1544 by 423 strip: YouTube's 1235 by 338 safe area, scaled from the minimum size to 2560 by 1440. The profile photo shows the round mask.
  5. Export. One run wrote 21 copies, one folder per network with the added folder's name inside, and an export summary.csv listing each copy's size, bytes, JPEG quality, limit and warnings. The finished window listed the 12 copies that had to be enlarged, all from the two smaller pictures.
Social Resize Pro with three pictures, the stall photo selected, seven formats ticked and the 9:16 story frame placed over the baker; the story result shades the top bar and the reply box and keeps the baker in the middle.
One click on the baker: the story crop keeps him in view, with the approximate covered bands shaded. Social Resize Pro 1.0.0 (evaluation build), tested 30 November 2026, invented sample files.
The YouTube channel banner format selected: the 2560 by 1440 banner crop of the stall, with the centre strip around the baker lit and the rest, the stall's name included, shaded.
The banner's safe strip keeps the baker; the stall's name above it falls in the shaded part that some devices crop. Social Resize Pro 1.0.0 (evaluation build), tested 30 November 2026, invented sample files.
The round stall logo selected for the X profile photo: the 400 by 400 result shows the logo inside a circle, with the corners outside the mask shaded grey.
The profile photo's round mask over the logo. Social Resize Pro 1.0.0 (evaluation build), tested 30 November 2026, invented sample files.
The Export finished window: 21 copies in one folder per network, with twelve copies listed under Check these copies as enlarged 1.12 to 2.13 times, and the export summary file named.
21 copies in one run, with the enlarged ones listed. Social Resize Pro 1.0.0 (evaluation build), tested 30 November 2026, invented sample files.

We read the copies back with Pillow: every one has its format's exact size, all are JPEGs at quality 90, and none carries EXIF, GPS or a colour profile, although the stall photo had a camera name, a caption and a GPS position. The colour square with the P3 test profile came out as sRGB 213, 116, 71 in all seven formats, the same as the script, and the logo's transparent corners came out white. For more on location data in photos, see removing GPS location from photos in bulk.

How to Resize One Image for Every Social Media Format0:54Watch on YouTubeNothing loads from YouTube until you press play. The player then loads from youtube-nocookie.com, YouTube's privacy-enhanced mode, and connects to Google's servers. Privacy

Limitations

  • The sizes above are the help pages' as we read them on 30 November 2026; the formats without an official size are approximate in every tool, ours included.
  • Some of version 1.0.0's preset notes, checked on 6 November 2026, are older than those pages. The YouTube Thumbnail 16:9 preset applies a 2 MB limit, and the 4K preset's note calls 2 MB the app's limit, while YouTube now accepts up to 50 MB. The Facebook cover preset shades a centred safe area, while Facebook now describes a left-aligned cover on phones with the profile picture over part of its left side. The X header preset shades no band, while X says 60 pixels at the top and bottom could be cropped. Instagram's 3:4 portrait is marked common practice, though Instagram's page now includes it. We did not use the Facebook cover and YouTube thumbnail presets in the test; presets can be edited in the app.
  • A picture smaller than a format is enlarged, and both methods flag it; start from the largest original you have.
  • In our test both methods saved JPEGs and put transparent areas on white; for a logo with transparency, check the copy, and keep a PNG if the network accepts one.
  • The script needs Python and Pillow, crops from the point you type, and shows no preview. We tested it on RGB pictures only; convert CMYK or greyscale files that carry a colour profile to RGB first. Social Resize Pro prepares the files; it does not post them. Its planned requirements: Windows 10 (22H2) or 11, 64-bit.

References