AgentSkillsCN

appstore-screenshots

将截图调整至App Store要求的尺寸。当向App Store Connect上传截图时,若因“尺寸不符”而遭遇上传失败,可使用此工具。支持iPhone 6.7"、6.5"、5.5"以及iPad的各种尺寸。

SKILL.md
--- frontmatter
name: appstore-screenshots
description: Resize screenshots to App Store required dimensions. Use when uploading screenshots to App Store Connect fails with "dimensions are wrong" error. Supports iPhone 6.7", 6.5", 5.5" and iPad sizes.

App Store Screenshots

Resize screenshots for App Store Connect.

Usage

bash
python3 .claude/skills/appstore-screenshots/scripts/resize_screenshots.py <input_dir> [output_dir] [size]

Examples

bash
# Default: 6.5" iPhone (1284x2778)
python3 .claude/skills/appstore-screenshots/scripts/resize_screenshots.py website/assets/screenshots/mobile/ios

# Specify output and size
python3 .claude/skills/appstore-screenshots/scripts/resize_screenshots.py ./screenshots ./appstore 6.7

Sizes

SizeDimensionsDevices
6.71290×2796iPhone 15/14 Pro Max
6.51284×2778iPhone 14 Plus, 13/12 Pro Max
6.5-alt1242×2688iPhone 11 Pro Max, XS Max
5.51242×2208iPhone 8/7/6s Plus
ipad-12.92048×2732iPad Pro 12.9"
ipad-111668×2388iPad Pro 11"

Requirements

  • Python 3
  • Pillow: pip install Pillow