add-device-frames

View code

Add device frames to mobile screenshots

Prerequisites

  1. You need imagemagick
brew install imagemagick
  1. Download device images for example from Apple:
curl https://devimages-cdn.apple.com/design/resources/download/Bezel-iPhone-14.dmg
  1. Unpack the .dmg, find the file you want to use and set the name/path in the script

Usage

Grab screenshots

Grab a screenshot with iOS Simulator and drag/copy the image to the same folder as the script. The script will work for as many screenshots as you have in this folder.

Grab a screenshot with iOS Simulator

Run the script

Create a transparent PNG

bash add-device-frames.sh png 0 0

Create a JPG with 1600/100 px x/y offset and a lightgrey background

bash add-device-frames.sh jpg 1600 100 lightgrey

Options

Arguments avaliable:

Demo

View the example.html file to se an example

open example.html

Example images

JPG with an offset and a lightgrey background color.

Transparent PNG

Notes