I spent some time over the holidays catching up on a selection of previous Club MacStories newsletters and came across a reader question in the Workflow Corner section of Issue 10:

Is there any way to build a workflow that would put the latest screenshot into an iPhone or iPad frame?

Federico Viticci response was that there isn’t a fully autonomous way of placing a screenshot inside an iOS device frame, suggesting instead to use an app like Pixelmator and Apple’s official product marketing images.

Federico isn’t wrong - there isn’t really any way to automate the placement of a screenshot inside an existing image of something like an iPhone or iPad using something like Workflow. However, if we come at this from a different angle, it actually is possible to achieve the desired result with Workflow.

Instead of looking to insert a screenshot inside device image, a screenshot can be “wrapped” by slicing a device image beforehand. Then, with some creative use of the “Combine Images” action and a few variables later, it’s possible to wrap a screenshot in a way that results in a perfect image of an iOS device containing a screenshot.

An example using this workflow

I’ve created this Screenshot Builder workflow and the necessary image assets that you can use to frame a screenshot with the iOS device of your choice. This is achieved by slicing the device image into four distinct segments (top, bottom, left and right sides), as the following screenshot (with some added padding) will show:

See how the device has been split into four distinct pieces

I spent some time slicing the images available from Apple so that the workflow can provide support for:

  • iPhone 6s
  • iPhone 6s Plus
  • iPad Pro
  • iPad Air
  • iPad mini
  • iPod touch
  • Apple Watch

Each iOS device has an option (and assets) to use either Silver or Space Gray colours (with the exception of the iPod touch, which offers Blue and Silver options) and will automatically detect if a screenshot should be in portrait or landscape.

Using this Workflow

This workflow requires the pre-made image assets I’ve created be saved to Dropbox so it can use them when creating these device screenshots. To do this, use this Dropbox link and add the folder (screenshot-builder) to your Dropbox account (click Download, then Save to my Dropbox). You’ll need to update the Dropbox action in the workflow if you move this from the root of your Dropbox folder.

Once the above has been done, simply run the workflow and select the device, its colour and the screenshot that you’d like to create.

Apple Watch with CARROT Weather Apple Watch with CARROT Weather

iPhone 6s Plus with Overcast iPhone 6s Plus with Overcast

iPhone 6s Plus with Alto's Adventure iPhone 6s Plus with Alto’s Adventure