Skip to content

Add App Store screenshot resize command #35

@paribaker

Description

@paribaker

Summary

Add a command to resize screenshots to App Store compliant dimensions for all device types.

Supported Devices

Device Dimensions
iPhone 6.7" (Pro Max) 1284 × 2778px
iPhone 6.5" (XS Max) 1242 × 2688px
iPad Pro 11" (4th gen+) 2064 × 2752px
iPad Pro 12.9" 2048 × 2732px
Apple Watch (45mm) 396 × 484px

Proposed CLI Usage

# Single device
tn screenshots resize --device iphone-67 --input ~/Desktop

# All devices at once
tn screenshots resize-all --input ~/Desktop

# With custom output
tn screenshots resize --device ipad-11 --input ~/Desktop --output ./AppStore

Reference Implementation

See justfile implementation in c2x_ventures repo:

screenshots-resize device input_dir output_dir="":
    #!/usr/bin/env bash
    set -euo pipefail

    case "$device" in
        iphone-67) width=1284; height=2778 ;;
        iphone-65) width=1242; height=2688 ;;
        ipad-11)   width=2064; height=2752 ;;
        ipad-129)  width=2048; height=2732 ;;
        watch)     width=396;  height=484  ;;
    esac

    # Uses macOS sips command for resizing
    sips -z "$height" "$width" "$file" --out "$outdir/$filename"

Notes

  • Uses macOS sips command (built-in, no dependencies)
  • Output defaults to input directory if not specified
  • Creates subdirectories per device type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions