agentsdance avatar

appstore-screenshot-resizer

Featured

Resize images to Apple App Store screenshot dimensions for iPhone 6.3", 6.5", and 6.9" displays. Use when the user wants to prepare screenshots for iOS app submission, convert images to App Store sizes, or resize images for iPhone display dimensions.

作者 agentsdance|オープンソース

App Store Screenshot Resizer

Resize images to Apple App Store required dimensions for iPhone displays.

Supported Sizes

DisplayPortraitLandscape
6.9" (iPhone 16 Pro Max)1320 × 28682868 × 1320
6.5" (iPhone 11 Pro Max, etc.)1242 × 26882688 × 1242
6.3" (iPhone 16 Pro)1206 × 26222622 × 1206

Usage

python3 scripts/resize.py <input_image> [options]

Options

OptionDescription
-d, --displayTarget size: 6.9, 6.5, or 6.3 (default: 6.9)
-l, --landscapeOutput in landscape orientation
-a, --auto-orientationAuto-detect orientation from source
-b, --backgroundPadding color (default: white)
--allGenerate all three display sizes
-o, --outputCustom output path

Examples

# Single size (6.9" portrait)
python3 scripts/resize.py screenshot.png

# All sizes, auto-detect orientation
python3 scripts/resize.py screenshot.png --all --auto-orientation

# Landscape with black background
python3 scripts/resize.py screenshot.png -d 6.5 -l -b black

# Custom output path
python3 scripts/resize.py screenshot.png -o appstore_ready.png

Behavior

  • Images are resized to fit within target dimensions while preserving aspect ratio
  • Padding is added (centered) when aspect ratios don't match
  • Output format is PNG by default; use .jpg extension for JPEG
  • Requires Pillow: pip install Pillow --break-system-packages