asc-screenshot-resize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseasc screenshot resize
ASC截图尺寸调整
Use this skill to resize screenshots to the exact pixel dimensions required by App Store Connect and validate they pass upload requirements. Uses the built-in macOS tool — no third-party dependencies needed.
sips使用本技能可将截图调整至App Store Connect要求的精确像素尺寸,并验证其是否符合上传要求。该技能使用macOS内置的工具——无需依赖第三方软件。
sipsRequired Dimensions
要求尺寸
iPhone
iPhone
| Display Size | Accepted Dimensions (portrait × landscape) |
|---|---|
| 6.9" | 1260 × 2736, 2736 × 1260, 1320 × 2868, 2868 × 1320, 1290 × 2796, 2796 × 1290 |
| 6.5" | 1242 × 2688, 2688 × 1242, 1284 × 2778, 2778 × 1284 |
| 6.3" | 1206 × 2622, 2622 × 1206, 1179 × 2556, 2556 × 1179 |
| 6.1" | 1125 × 2436, 2436 × 1125, 1080 × 2340, 2340 × 1080, 1170 × 2532, 2532 × 1170 |
| 5.5" | 1242 × 2208, 2208 × 1242 |
| 4.7" | 750 × 1334, 1334 × 750 |
| 4" | 640 × 1096, 640 × 1136, 1136 × 600, 1136 × 640 |
| 3.5" | 640 × 920, 640 × 960, 960 × 600, 960 × 640 |
Note: 6.9" accepts screenshots from 6.5", 6.7", and 6.9" devices. 6.3" accepts from 6.1" and 6.3". 6.1" accepts from 5.4", 5.8", and 6.1".
| 显示屏尺寸 | 接受的尺寸(竖屏×横屏) |
|---|---|
| 6.9" | 1260 × 2736, 2736 × 1260, 1320 × 2868, 2868 × 1320, 1290 × 2796, 2796 × 1290 |
| 6.5" | 1242 × 2688, 2688 × 1242, 1284 × 2778, 2778 × 1284 |
| 6.3" | 1206 × 2622, 2622 × 1206, 1179 × 2556, 2556 × 1179 |
| 6.1" | 1125 × 2436, 2436 × 1125, 1080 × 2340, 2340 × 1080, 1170 × 2532, 2532 × 1170 |
| 5.5" | 1242 × 2208, 2208 × 1242 |
| 4.7" | 750 × 1334, 1334 × 750 |
| 4" | 640 × 1096, 640 × 1136, 1136 × 600, 1136 × 640 |
| 3.5" | 640 × 920, 640 × 960, 960 × 600, 960 × 640 |
注意: 6.9英寸设备接受来自6.5英寸、6.7英寸和6.9英寸设备的截图;6.3英寸设备接受来自6.1英寸和6.3英寸设备的截图;6.1英寸设备接受来自5.4英寸、5.8英寸和6.1英寸设备的截图。
iPad
iPad
| Display Size | Accepted Dimensions |
|---|---|
| 13" | 2064 × 2752, 2752 × 2064, 2048 × 2732, 2732 × 2048 |
| 11" | 1668 × 2420, 2420 × 1668, 1668 × 2388, 2388 × 1668, 1640 × 2360, 2360 × 1640, 1488 × 2266, 2266 × 1488 |
| iPad Pro 2nd gen 12.9" | 2048 × 2732, 2732 × 2048 |
| 10.5" | 1668 × 2224, 2224 × 1668 |
| 9.7" | 1536 × 2008, 1536 × 2048, 2048 × 1496, 2048 × 1536, 768 × 1004, 768 × 1024, 1024 × 748, 1024 × 768 |
| 显示屏尺寸 | 接受的尺寸 |
|---|---|
| 13" | 2064 × 2752, 2752 × 2064, 2048 × 2732, 2732 × 2048 |
| 11" | 1668 × 2420, 2420 × 1668, 1668 × 2388, 2388 × 1668, 1640 × 2360, 2360 × 1640, 1488 × 2266, 2266 × 1488 |
| iPad Pro 2nd gen 12.9" | 2048 × 2732, 2732 × 2048 |
| 10.5" | 1668 × 2224, 2224 × 1668 |
| 9.7" | 1536 × 2008, 1536 × 2048, 2048 × 1496, 2048 × 1536, 768 × 1004, 768 × 1024, 1024 × 748, 1024 × 768 |
Apple Watch
Apple Watch
| Device | Dimensions |
|---|---|
| Ultra 3 (49mm) | 422 × 514, 410 × 502 |
| Series 11 (46mm) | 416 × 496 |
| Series 9 (45mm) | 396 × 484 |
| Series 6 (44mm) | 368 × 448 |
| Series 3 (42mm) | 312 × 390 |
| 设备型号 | 尺寸 |
|---|---|
| Ultra 3 (49mm) | 422 × 514, 410 × 502 |
| Series 11 (46mm) | 416 × 496 |
| Series 9 (45mm) | 396 × 484 |
| Series 6 (44mm) | 368 × 448 |
| Series 3 (42mm) | 312 × 390 |
Mac
Mac
| Dimensions |
|---|
| 1280 × 800 |
| 1440 × 900 |
| 2560 × 1600 |
| 2880 × 1800 |
| 尺寸 |
|---|
| 1280 × 800 |
| 1440 × 900 |
| 2560 × 1600 |
| 2880 × 1800 |
Apple TV
Apple TV
| Dimensions |
|---|
| 1920 × 1080 |
| 3840 × 2160 |
| 尺寸 |
|---|
| 1920 × 1080 |
| 3840 × 2160 |
Workflow
操作流程
1. Fix Unicode filenames
1. 修复Unicode文件名
macOS screenshots often contain hidden Unicode characters (e.g., narrow no-break space) that cause and other tools to fail with "not a valid file". Always sanitize first:
U+202Fsipsbash
python3 -c "
import os
for f in os.listdir('.'):
clean = f.replace('\u202f', ' ')
if f != clean:
os.rename(f, clean)
print(f'Renamed: {clean}')
"macOS截图的文件名中常包含隐藏的Unicode字符(如窄不换行空格),这会导致及其他工具报错“不是有效的文件”。请务必先清理文件名:
U+202Fsipsbash
python3 -c "
import os
for f in os.listdir('.'):
clean = f.replace('\u202f', ' ')
if f != clean:
os.rename(f, clean)
print(f'Renamed: {clean}')
"2. Check current dimensions
2. 检查当前尺寸
bash
sips -g pixelWidth -g pixelHeight screenshot.pngbash
sips -g pixelWidth -g pixelHeight screenshot.png3. Validate App Store readiness
3. 验证是否符合App Store提交要求
Check for alpha channel and color space issues before uploading:
bash
sips -g hasAlpha -g space screenshot.pngApp Store Connect rejects screenshots with alpha transparency. Remove it by round-tripping through JPEG:
bash
sips -s format jpeg input.png --out /tmp/temp.jpg
sips -s format png /tmp/temp.jpg --out output.png
rm /tmp/temp.jpgBatch-strip alpha from all PNGs in a directory:
bash
for f in *.png; do
if sips -g hasAlpha "$f" | grep -q "yes"; then
sips -s format jpeg "$f" --out /tmp/temp.jpg
sips -s format png /tmp/temp.jpg --out "$f"
rm /tmp/temp.jpg
echo "Stripped alpha: $f"
fi
done上传前检查是否存在Alpha通道和色彩空间问题:
bash
sips -g hasAlpha -g space screenshot.pngApp Store Connect会拒绝带有Alpha透明度的截图。可通过转存为JPEG再转回的方式移除Alpha通道:
bash
sips -s format jpeg input.png --out /tmp/temp.jpg
sips -s format png /tmp/temp.jpg --out output.png
rm /tmp/temp.jpg批量移除目录中所有PNG图片的Alpha通道:
bash
for f in *.png; do
if sips -g hasAlpha "$f" | grep -q "yes"; then
sips -s format jpeg "$f" --out /tmp/temp.jpg
sips -s format png /tmp/temp.jpg --out "$f"
rm /tmp/temp.jpg
echo "Stripped alpha: $f"
fi
done4. Resize a single screenshot
4. 调整单张截图尺寸
bash
undefinedbash
undefinedPortrait iPhone 6.5" (1284 × 2778)
竖屏iPhone 6.5英寸(1284 × 2778)
sips -z 2778 1284 input.png --out output.png
**Note:** `sips -z` takes height first, then width: `sips -z <height> <width>`.sips -z 2778 1284 input.png --out output.png
**注意:** `sips -z`命令先指定高度,再指定宽度:`sips -z <高度> <宽度>`。5. Batch resize all screenshots in a directory
5. 批量调整目录中所有截图尺寸
bash
mkdir -p resized
for f in *.png; do
sips -z 2778 1284 "$f" --out "resized/$f"
donebash
mkdir -p resized
for f in *.png; do
sips -z 2778 1284 "$f" --out "resized/$f"
done6. Generate multiple device sizes from one source
6. 从单张源图片生成多设备尺寸截图
bash
mkdir -p appstore-screenshotsbash
mkdir -p appstore-screenshotsiPhone
iPhone
sips -z 2868 1320 input.png --out appstore-screenshots/iphone-6.9.png
sips -z 2778 1284 input.png --out appstore-screenshots/iphone-6.5.png
sips -z 2622 1206 input.png --out appstore-screenshots/iphone-6.3.png
sips -z 2532 1170 input.png --out appstore-screenshots/iphone-6.1.png
sips -z 2208 1242 input.png --out appstore-screenshots/iphone-5.5.png
undefinedsips -z 2868 1320 input.png --out appstore-screenshots/iphone-6.9.png
sips -z 2778 1284 input.png --out appstore-screenshots/iphone-6.5.png
sips -z 2622 1206 input.png --out appstore-screenshots/iphone-6.3.png
sips -z 2532 1170 input.png --out appstore-screenshots/iphone-6.1.png
sips -z 2208 1242 input.png --out appstore-screenshots/iphone-5.5.png
undefined7. Verify output
7. 验证输出结果
bash
sips -g pixelWidth -g pixelHeight -g hasAlpha resized/*.pngConfirm all files show the target dimensions and .
hasAlpha: nobash
sips -g pixelWidth -g pixelHeight -g hasAlpha resized/*.png确认所有文件显示目标尺寸且。
hasAlpha: noGuardrails
注意事项
- stretches images to fit exact dimensions. For best results, use source screenshots captured at or near the target aspect ratio.
sips - Always output to a separate file or directory () to preserve originals.
--out - App Store Connect requires PNG or JPEG format. preserves the input format by default.
sips - Screenshots must not include alpha transparency. Always validate with before upload.
sips -g hasAlpha - Color space must be sRGB. If screenshots use Display P3, convert with: .
sips -m "/System/Library/ColorSync/Profiles/sRGB IEC61966-2.1.icc" input.png --out output.png
- 会拉伸图片以适配精确尺寸。为获得最佳效果,请使用与目标宽高比一致或接近的源截图。
sips - 请始终输出到单独的文件或目录(使用参数)以保留原始文件。
--out - App Store Connect要求截图为PNG或JPEG格式。默认保留输入格式。
sips - 截图不得包含Alpha透明度。上传前务必使用命令验证。
sips -g hasAlpha - 色彩空间必须为sRGB。如果截图使用Display P3色彩空间,请使用以下命令转换:。
sips -m "/System/Library/ColorSync/Profiles/sRGB IEC61966-2.1.icc" input.png --out output.png