Menu

1 / 2

Auto-padding iPhone screenshots to iPad dimensions with ImageMagick (full Python script)

DEV Community·孫昊·7 months ago
#TebjZd9j
#imagemagick#python#ios#self#screenshots
Reading 0:00
15s threshold

I just shipped four iOS apps to TestFlight. Each needs screenshots for the App Store.

iPhone screenshots are 1170×2532px (or 1284×2778px for Pro). iPad screenshots are 2048×2732px. Apple requires both. But I only have iPhone screenshots, and manually scaling them up in Figma for each app is... tedious.

So I wrote a script that takes iPhone screenshots, pads them to iPad dimensions, and uploads them to App Store Connect. Five lines of ImageMagick per image. Fully automated.

Here's the full script.

The problem

App Store Connect wants:

iPhone: 1170×2532 (portrait)

iPad Pro: 2048×2732 (portrait)

I have iPhone screenshots. Scaling them down to iPad proportions loses detail.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.