Token导航 LogoToken导航TokenDH.com
图像处理权限需确认github未标认证来源可访问许可证需确认审计未展示

social-media-image-sizes社交媒体图像尺寸

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

222

周安装

9

GitHub Stars

1

下载量

70
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:social-media-image-sizes(社交媒体图像尺寸)
来源仓库:https://github.com/branding5/agent-skills
仓库路径:skills/social-media-image-sizes
安装命令:
npx skills add https://github.com/branding5/agent-skills --skill social-media-image-sizes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/branding5/agent-skills --skill social-media-image-sizes

简介

用于辅助图像生成、图片编辑或视觉素材处理,支持根据文本生成图片或调整提示词。

  • 适合图像模型工作流中的背景处理、格式转换或视觉提示词整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 使用时需确认输入图片、版权来源及输出格式,涉及人物或品牌时需额外核对授权。
  • social-media-image-sizes 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
social-media-image-sizes
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, TikTok, YouTube, Pinterest, Snapchat, and Threads — get a ranked match list with exact resize commands. Run scripts/resize.js to export a correctly-sized copy. Use when a user asks to validate image dimensions, resize an image for a platform, check if an image fits a spec, or prep assets for social media posting or ads.
license
MIT
compatibility
Requires Node.js 18+ and npm (or pnpm). Run npm install once before first use.
metadata
author
Branding5
version
1.0.0
source
https://www.branding5.com/tools/social-media-cheat-sheet
allowed-tools
Bash

Social Media Image Sizes

Check and resize images for 9 platforms / 60+ specs. Scripts mirror the logic at branding5.com/tools/social-media-cheat-sheet.

Setup

Run once after install:

cd <skill-dir>
npm install

Check an image

node scripts/check.js photo.jpg

Outputs a ranked match list — perfect → close → usable → too small — with an inline node scripts/resize.js command for every non-perfect match.

Filter by platform or match level:

node scripts/check.js photo.jpg --platform instagram
node scripts/check.js photo.jpg --filter perfect
node scripts/check.js photo.jpg --filter usable

Platform slugs: instagram facebook twitter linkedin tiktok youtube pinterest snapchat threads

Resize an image

node scripts/resize.js photo.jpg "Instagram Portrait Post"
# → photo-instagram-portrait-post.jpg  (1080×1350 px)

node scripts/resize.js photo.jpg "YouTube Custom Thumbnail"
# → photo-youtube-custom-thumbnail.jpg  (1280×720 px)

Default fit is cover (center-crop). Use --fit contain to letterbox instead:

node scripts/resize.js photo.jpg "LinkedIn Background Photo" --fit contain --bg f0f0f0
node scripts/resize.js photo.jpg "Instagram Portrait Post" --out ./exports/ig.jpg

List every available spec name:

node scripts/resize.js photo.jpg --list

Workflow

  1. Run check.js to see what a given image already matches
  2. Copy the suggested resize.js command from the output
  3. Run it — the output file is saved alongside the original by default

Gotchas

  • Sharp requires a native binary. On first npm install, it downloads a prebuilt binary for your platform. If install fails behind a proxy, set SHARP_IGNORE_GLOBAL_LIBVIPS=1 and retry.
  • All slides in an Instagram carousel must share the same aspect ratio. The first image sets the ratio for the whole carousel — check all slides, not just the first.
  • Facebook cover photo has two safe zones. Desktop shows 820×312; mobile crops to 640×360. Keep key content in the center 640×312.
  • YouTube banner safe area is much smaller than the file. The spec is 2560×1440 but only the center 1546×423 is guaranteed visible on all devices. check.js flags the full size; keep critical content in the safe area.
  • --fit cover center-crops. If the subject isn't centered, use --out to save, then manually crop, or use an image editor before running resize.

References

Full per-platform specs (load when you need detail for a specific platform):

  • references/instagram.md — profile, feed, stories, reels, carousel, ads
  • references/facebook.md — profile, cover, feed, stories, events, ads
  • references/x-twitter.md — profile, header, posts, ads
  • references/linkedin.md — profile, cover, feed, articles, ads
  • references/tiktok.md — profile, videos, ads
  • references/youtube.md — channel art, videos, thumbnails, shorts, ads
  • references/pinterest.md — profile, pins, idea pins, ads
  • references/snapchat.md — snaps, spotlight, stories, ads, filters
  • references/threads.md — profile, posts
  • references/best-practices.md — format, compression, safe zones, accessibility

Full compiled reference (all platforms in one file): AGENTS.md


*Need to generate on-brand images at these sizes? Branding5 pairs your brand kit with AI to produce social content pre-sized for every platform.*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.83%
按下载量换算23

Claude

28.79%
按下载量换算20

Cursor

19.49%
按下载量换算14

Gemini CLI

8.97%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills