Matthias Neumayer 76e1891602 fix: resolve bugs in resize.js and check.js, align platform data names
- resize.js: create parent directories for --out path
- resize.js: support 3-char shorthand hex and validate --bg color
- resize.js: validate --fit value (cover|contain only)
- check.js: use full image path in resize hints instead of basename
- platform-data.js: rename YouTube 'Banner' → 'Channel Banner'
- platform-data.js: rename LinkedIn 'Spotlight Ad' → 'Spotlight Ad Logo'
2026-04-30 14:42:43 +02:00

Social Media Image Sizes

Free, open-source AI agent skill from Branding5.

Check and resize images for every major social media platform.

Validates image dimensions against 60+ specs across Instagram, Facebook, X (Twitter), LinkedIn, TikTok, YouTube, Pinterest, Snapchat, and Threads. Outputs a ranked match list and generates correctly-sized exports via sharp.

Install:

npx skills add Branding5/social-media-image-sizes

Use when a user asks:

  • "Is this image the right size for Instagram?"
  • "Resize this photo for a LinkedIn banner"
  • "What size should my YouTube thumbnail be?"
  • "Prep these assets for Facebook ads"
  • "Check if my image fits the TikTok spec"

Check an image:

node scripts/check.js image.png

check output

Resize to a named spec:

node scripts/resize.js image.png "Instagram Profile Photo"

resize output

Platforms covered:

Platform Specs
Instagram Profile, Feed (portrait/square/landscape), Stories, Reels, Carousel, Ads
Facebook Profile, Cover, Feed, Stories, Reels, Events, Groups, Ads
X (Twitter) Profile, Header, Posts, Cards, Ads
LinkedIn Profile, Background, Company, Feed, Articles, Newsletters, Ads
TikTok Profile, Videos, Ads
YouTube Profile, Banner, Thumbnails, Shorts, Community, Ads
Pinterest Profile, Boards, Standard/Square/Long/Idea Pins, Ads
Snapchat Snaps, Spotlight, Stories, Ads, Filters/Lenses
Threads Profile, Posts

View skill · Full reference · Interactive tool


Installation

npx skills add Branding5/social-media-image-sizes

Install globally so it's available in every project:

npx skills add Branding5/social-media-image-sizes -g

Contributing

Bug reports and pull requests welcome. If a platform updates its specs, open an issue or PR against the relevant file in references/ or scripts/platform-data.js.

License

MIT — free to use, fork, and redistribute.


Skills built alongside Branding5 — AI brand positioning and marketing strategy

S
Description
Check and resize images for social media platforms. Run scripts/check.js to validate any image against specs for Instagram, Facebook, X (Twitter), LinkedIn,…
Readme MIT 288 KiB
Languages
JavaScript 100%