CropDen: image sizes and AI image tools

io.github.geektao1024由 GitHub 帳號 geektao1024 發布v1.0.0更新於 Nov 1, 2026

Platform image sizes with safe zones (free), plus AI extend, upscale and background removal.

已驗證Streamable HTTP可網頁執行資料與分析媒體與設計

概覽

AI 產生的概覽

CropDen 遠端伺服器,讓助理查詢各平台圖片尺寸與安全區,並提供付費的 AI 擴圖、放大與去背工具。

可以做什麼
  • 查詢社群平台、電商平台與證件照的精确尺寸、安全區、上傳上限與最小尺寸
  • 用 AI 將圖片向外延伸成更寬或更高的比例
  • 用 AI 將圖片放大 2 倍或 4 倍
  • 用 AI 移除圖片背景,輸出透明 PNG
  • 查詢耗時較久的 AI 任務狀態與剩餘點數餘額
適用情境
當助理需要為特定平台準備或核對圖片(例如 YouTube 橫幅、Instagram 限時動態、電商商品圖或證件照),需要精確像素、安全區與上傳限制,或想在對話中直接完成擴圖、放大、去背等 AI 處理時適用。
執行需求
遠端 Streamable HTTP 端點 cropden.com/mcp,不需本機執行環境。免費的尺寸查詢不需要金鑰;AI 工具與餘額查詢需要 CropDen API 金鑰,透過 Authorization Bearer 標頭傳送,可於 CropDen 帳戶設定取得。AI 工具會消耗 CropDen 點數。
安裝前請注意
AI 工具會消耗 CropDen 點數(擴圖 5 點、放大 8 或 12 點、去背 1 點),僅在執行失敗時退還,大量使用前先確認餘額。API 金鑰屬機密資訊,經 Authorization 標頭傳遞。上傳的圖片會送到 CropDen 伺服器,結果連結 7 天後失效,需要的成品請及早保存。實測的安全區僅供參考,應用程式改版後可能變動。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 CropDen: image sizes and AI image tools,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.geektao1024%2Fcropden/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "cropden-image-sizes-and-ai-image-tools": {
      "type": "http",
      "url": "https://cropden.com/mcp"
    }
  }
}

README

social-media-image-sizes

Image sizes for 14 platforms: 55 sizes with safe zones, upload limits and minimum sizes, plus specs for 6 passport and visa photos. As JSON, an npm package, an agent skill and an MCP server. Data under CC BY 4.0.

Website · JSON · 中文说明

Most size lists stop at width × height. When you crop, you also need to know what the app puts on top of your image: the profile picture over a YouTube banner, the caption bar at the bottom of a Story, the 3:4 profile grid that trims a 4:5 Instagram post. This dataset has those areas in pixels.

Quick look

One size per row. Each group has more sizes in the data.

PlatformImageSize (px)RatioCrop on CropDen
Instagram3:4 portrait post (+3 more)1080 × 14403:4Crop
InstagramStory (+2 more)1080 × 19209:16Crop
InstagramProfile picture (+1 more)320 × 3201:1Crop
YouTubeChannel banner (+1 more)2560 × 144016:9Crop
YouTubeVideo thumbnail (4K) (+2 more)3840 × 216016:9Crop
YouTubeShort (9:16) (+1 more)1080 × 19209:16Crop
FacebookCover photo (+2 more)851 × 3152.70:1Crop
FacebookFeed post (4:5) (+3 more)1080 × 13504:5Crop
DiscordProfile banner (+3 more)600 × 2405:2Crop
DiscordCustom emoji (+2 more)128 × 1281:1Crop
LinkedInProfile background (+3 more)1584 × 3964:1Crop
X (Twitter)Header photo (+3 more)1500 × 5003:1Crop
TwitchProfile banner (+3 more)1200 × 4805:2Crop
TikTokVideo / photo slide (+2 more)1080 × 19209:16Crop
PinterestStandard pin (2:3) (+2 more)1000 × 15002:3Crop
SnapchatStory / Spotlight1080 × 19209:16Crop
EtsyListing photo (4:3) (+2 more)3000 × 22504:3Crop
ShopifyProduct image2048 × 20481:1Crop
eBayListing photo1600 × 16001:1Crop
AmazonMain product image2000 × 20001:1Crop

Passport photos (make one on CropDen):

DocumentPixelsPrint size
US passport & visa600 × 60050.8 × 50.8 mm
UK passport600 × 77135 × 45 mm
EU / Schengen600 × 77135 × 45 mm
Canada600 × 84050 × 70 mm
Australia600 × 77135 × 45 mm
China visa600 × 87333 × 48 mm

All sizes and their zones are in data/social-media-image-sizes.json. To crop an image to any of them in your browser, follow the link in the last column.

Use it

npm

sh
npm install social-media-image-sizes
js
import { getSize, groups } from 'social-media-image-sizes';
const post = getSize('instagram-post/portrait-34');// { width: 1080, height: 1440, ratio: '3:4', exact: true, ... }
const youtube = groups.filter((g) => g.platform === 'YouTube');

CommonJS works too: const { getSize } = require('social-media-image-sizes').

JSON over HTTP

js
const res = await fetch('https://cropden.com/data/social-media-image-sizes.json');const { groups, passportPhotos } = await res.json();

The endpoint allows cross-origin requests and is cached for an hour.

Use it with AI agents

Skill: make images in the right size

skills/social-media-image-sizes is an Agent Skill for Claude Code, Codex, Cursor and other agents that read SKILL.md. Ask "turn this photo into a YouTube banner" or "what size is an Instagram story?". It picks the size, crops the image on your machine with sharp, keeps the file under the upload limit, and draws a preview with the covered areas in red.

sh
npx skills add geektao1024/social-media-image-sizes

Or copy the folder into ~/.claude/skills/ (Claude Code) or your agent's skills folder.

MCP server: sizes plus AI image tools

CropDen runs a remote MCP server at https://cropden.com/mcp (Streamable HTTP).

ToolWhat it doesCost
get_image_sizesSizes, safe zones and upload limits from this datasetFree, no key
ai_extend_imageExtend an image to a wider or taller shape (outpainting)5 credits
ai_upscale_imageUpscale 2x or 4x8 or 12 credits
ai_remove_backgroundTransparent PNG1 credit
get_ai_task, get_credit_balanceCheck a long run, check your balanceFree, needs a key

Claude Code:

sh
claude mcp add --transport http cropden https://cropden.com/mcp \  --header "Authorization: Bearer YOUR_CROPDEN_API_KEY"

Other clients: add https://cropden.com/mcp as a Streamable HTTP server with the same header. Get a key at cropden.com under Settings → API keys. The AI tools use the same credits as the website, and a failed run is refunded. Without a key, only get_image_sizes works.

What's in an entry

FieldMeaning
id<group>/<size>, e.g. youtube-banner/banner
width, heightPixels to export
ratioAspect ratio, e.g. 3:4
exactfalse means only the ratio matters
recommendedThe size we'd pick when a group has several
minWidth, minHeightSmallest upload the platform accepts or needs
maxBytesUpload limit in bytes (1 MB = 1,000,000)
zonesAreas in pixels: safe-area (keep content inside), ui-overlay (covered by the app), crop-preview (what another view shows)
zones[].measuredMeasured in the live app; the platform doesn't publish it
zones[].x, y, ...Pixels from the top-left of the image. A zone can reach past the edge, like a profile picture that overlaps the bottom of a banner
noteOne-line tip, in English and Chinese

Each group also has formats, facts (video length and similar), verified and a url to crop on CropDen. Passport photos add print size in millimetres and head and eye-line ranges as fractions of the photo height.

How the numbers are checked

  • Platform help pages come first. Where a platform publishes nothing (Instagram profile pictures, for example), we use the size current guides agree on.
  • Zones with measured: true were measured in the apps. Apps move their buttons around, so treat those as guides.
  • verified is the month a group was last checked. Source links for every group are coming in 0.2.0.
  • Found a size that's out of date? Open an issue with a link to the source.

If you only want values the platforms document themselves, use The Social Specification, which marks everything else as not documented. This dataset is made for cropping, so it fills those gaps with practical sizes and safe zones.

On the website

CropDen does the cropping. Pick a size, see the safe zones over your own image, and export at the exact pixel size and under the upload limit. The crop and resize tools run in your browser. The site also has batch resizing and AI tools: extend, upscale and remove background.

License

  • Data (data/, and the same data in index.js and index.cjs): CC BY 4.0. Credit it like this: Image size data by CropDen (https://cropden.com), CC BY 4.0. On a website, the link is enough.
  • Code: MIT.

Thanks

SammaPix (MIT) was our starting reference for which platforms and passport photos to cover, and we cross-checked sizes against its data files.

If this saved you a lookup, a star helps other people find it.

Built in public by Geektao (@geektao0319, posts in Chinese).

來源:README.md,提交 ffe82b0

工具

6

get_image_sizes

Image sizes for social media and passports

Exact image sizes for Instagram, YouTube, TikTok, X, LinkedIn, Facebook, Discord, Twitch, Pinterest, marketplaces and passport photos, with safe zones (pixel areas the app covers or crops), upload limits and minimum sizes. Free, no API key. With no arguments it lists every size id; pass `id` (e.g. "youtube-banner/banner") or `platform` (e.g. "Instagram") for full details.

輸入參數idplatform

ai_extend_image

AI image extender (outpaint)

Extend an image to a wider or taller shape with AI, e.g. a portrait photo to a 16:9 YouTube thumbnail without cropping the subject. Costs 5 CropDen credits per run, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB and 2048 px on the longest side. Returns a link to the result, valid 7 days. The model redraws the whole frame, so tiny details of the original can change.

輸入參數ratio必填image_urlimage_base64

ai_upscale_image

AI image upscaler

Upscale an image 2x or 4x with AI. Costs 8 credits for 2x and 12 for 4x, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB; longest side up to 2048 px for 2x or 1024 px for 4x. Returns a link to the result, valid 7 days.

輸入參數factor必填image_urlimage_base64

ai_remove_background

Remove background

Remove the background of an image with AI; the result is a PNG with transparency. Costs 1 credit per run, refunded if it fails. Needs a CropDen API key. Input: PNG, JPEG or WebP, up to 10 MB and 2048 px on the longest side. Returns a link to the result, valid 7 days.

輸入參數image_urlimage_base64

get_ai_task

Check an AI run

Status of an AI run that was still working when its tool returned. Pass the task_id it gave you; wait about 10 seconds between checks.

輸入參數task_id必填

get_credit_balance

Credit balance

How many CropDen credits the API key owner has left.

無需輸入參數。

版本歷史

1
  1. v1.0.0最新Nov 1, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分