brew install imagemagick
curl https://devimages-cdn.apple.com/design/resources/download/Bezel-iPhone-14.dmg
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.
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
Arguments avaliable:
View the example.html file to se an example
open example.html
JPG with an offset and a lightgrey background color.
Transparent PNG