- 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'
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
Resize to a named spec:
node scripts/resize.js image.png "Instagram Profile Photo"
Platforms covered:
| Platform | Specs |
|---|---|
| Profile, Feed (portrait/square/landscape), Stories, Reels, Carousel, Ads | |
| Profile, Cover, Feed, Stories, Reels, Events, Groups, Ads | |
| X (Twitter) | Profile, Header, Posts, Cards, Ads |
| Profile, Background, Company, Feed, Articles, Newsletters, Ads | |
| TikTok | Profile, Videos, Ads |
| YouTube | Profile, Banner, Thumbnails, Shorts, Community, Ads |
| 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

