A simple library for creating beautiful screenshots.
Go to file
2022-02-21 12:08:23 +05:00
MockupEngineer 2022.02.21.8 2022-02-21 12:08:23 +05:00
.gitignore 2022.22.01.1 2022-01-22 13:00:56 +05:00
deploy.py 2022.02.21.8 2022-02-21 12:08:23 +05:00
LICENSE 2022.02.02.1 2022-02-02 19:12:05 +05:00
MANIFEST.in 2022.02.21.8 2022-02-21 12:08:23 +05:00
readme-template.md 2022.02.21.8 2022-02-21 12:08:23 +05:00
readme.md 2022.02.21.8 2022-02-21 12:08:23 +05:00
requirements.txt 2022.02.02.1 2022-02-02 19:12:05 +05:00
setup.py 2022.02.21.8 2022-02-21 12:08:23 +05:00

MockupEngineer

A simple library for creating beautiful screenshots.

Navigation

Example

Apple iPhone 12 Pro Max Mockup

Apple iPhone 12 Pro Max Mockup

Notice

The quality of all examples is much worse than real mockups, this is due to the project size limit on PyPI.

Install

$ python3 -m pip install MockupEngineer

Update

$ python3 -m pip install MockupEngineer --upgrade

Usage

As a standalone application:

$ python3 -m MockupEngineer
Usage as a standalone application

In Python console:

from MockupEngineer import MockupEngineerInstance

mockup = MockupEngineerInstance()

mockup.generate(template_id=mockup.templates[0].id,
                screenshot_path='/path/to/screenshot',
                color=mockup.templates[0].colors[0].color)
>>> /path/to/mockup

MockupEngineerInstance.generate parameters:

  • template_id: int — Device template id, must be passed from MockupEngineerInstance.templates or MockupEngineerInstance.get_templates().
  • screenshot_path: str — Absolute path to the image in JPG, PNG format.
  • color: Optional[str] — Optional parameter, force device color. Must be passed according to Template.colors[n].color.
  • orientation: str — Optional parameter, force device orientation. Must be landscape or portrait.
  • external_storage: Optional[bool] — Optional parameter, true if you need to upload mockup on TemporaryStorage (0x0.st etc)

List of supported mockups

Full list of all currently supported mockups

Phones

  • Samsung Galaxy S20 (2020) [1440 x 3200]

    • Author: @ulbwa [31.01.2022]
    • ID: 84b30848f1af25c9a3bff6583bbbe75a
    • Colors:
      • Cloud Blue
      • Cosmic Grey
      • Pink
  • Samsung Galaxy S20 Ultra (2020) [1440 x 3200]

    • Author: @ulbwa [31.01.2022]
    • ID: c4168e005483c3579bef74898a4b0384
    • Colors:
      • Cosmic Black
      • Cosmic Grey
  • Apple iPhone 12 (2020) [1170 x 2532]

    • Author: @ulbwa [31.01.2022]
    • ID: 1648990cfee89db1d6cb744c998e783a
    • Colors:
      • Black
      • Blue
      • Green
      • Product Red
      • White
  • Apple iPhone 12 Mini (2020) [1080 x 2340]

    • Author: @ulbwa [31.01.2022]
    • ID: aea792f252c0ba0847741c0a4a6dd3ca
    • Colors:
      • Black
      • Blue
      • Green
      • Product Red
      • White
  • Apple iPhone 12 Pro (2020) [1170 x 2532]

    • Author: @ulbwa [31.01.2022]
    • ID: b25e4e76e2083e389761d3495a347e58
    • Colors:
      • Gold
      • Graphite
      • Pacific Blue
      • Silver
  • Apple iPhone 12 Pro Max (2020) [1284 x 2778]

    • Author: @ulbwa [31.01.2022]
    • ID: 658c22b16917a70e5e1703f300ef98fe
    • Colors:
      • Gold
      • Graphite
      • Pacific Blue
      • Silver
  • Apple iPhone 13 (2021) [1170 x 2532]

    • Author: @ulbwa [19.02.2022]
    • ID: e03132ca8b4b0483e9d8f4a1ec1be1f5
    • Colors:
      • Blue
      • Midnight
      • Pink
      • Product Red
      • Starlight
  • Apple iPhone 13 Mini (2021) [1080 x 2340]

    • Author: @ulbwa [19.02.2022]
    • ID: d0346fb29c4c3de9ff70953a7ae3bfee
    • Colors:
      • Blue
      • Midnight
      • Pink
      • Product Red
      • Starlight
  • Apple iPhone 13 Pro (2021) [1170 x 2532]

    • Author: @ulbwa [19.02.2022]
    • ID: 1c6f40f0490c7e0cf35de1c96af5c720
    • Colors:
      • Gold
      • Graphite
      • Sierra Blue
      • Silver
  • Apple iPhone 13 Pro Max (2021) [1284 x 2778]

    • Author: @ulbwa [19.02.2022]
    • ID: edc57edf104fdba42fdf935986b09ab8
    • Colors:
      • Gold
      • Graphite
      • Sierra Blue
      • Silver
  • Apple iPhone SE (2020) [750 x 1334]

    • Author: @ulbwa [31.01.2022]
    • ID: 7ed0bde8cf28335afb6bf7e8fc90806b
    • Colors:
      • Black
      • Product Red
      • White
  • Apple iPhone Xr (2018) [828 x 1792]

    • Author: @ulbwa [01.02.2022]
    • ID: 5213bfd57a03c81ad4dc702952810ee6
    • Colors:
      • Blue
      • Coral
      • Product Red
      • Silver
      • Space Gray
      • Yellow
  • Apple iPhone Xs (2019) [1125 x 2436]

    • Author: @ulbwa [01.02.2022]
    • ID: 4b17c9428565db596f647b448656b744
    • Colors:
      • Gold
      • Silver
      • Space Gray
  • Apple iPhone Xs Max (2019) [1242 x 2688]

    • Author: @ulbwa [01.02.2022]
    • ID: 2c9c1c6b8c0b598fe1c1aca4c1f334f8
    • Colors:
      • Gold
      • Silver
      • Space Gray
  • Google Pixel (2016) [1080 x 1920]

    • Author: @ulbwa [01.02.2022]
    • ID: ede34489f377fcc7852a326dd79c2550
    • Colors:
      • Quite Black
      • Really Blue
      • Very Silver
  • Google Pixel 4 (2019) [1080 x 2280]

    • Author: @ulbwa [01.02.2022]
    • ID: 673398cd2adaadd60506fb0140b83ab9
    • Colors:
      • Just Black
      • Clearly White
      • Oh So Orange
  • Google Pixel 4 XL (2019) [1440 x 3040]

    • Author: @ulbwa [01.02.2022]
    • ID: c55e7641f3ba76d7b777281b0ba4aa87
    • Colors:
      • Just Black
      • Clearly White
      • Oh So Orange
  • Google Pixel 5 (2020) [1080 x 2340]

    • Author: @ulbwa [01.02.2022]
    • ID: 870266635f047a49c2eae83f7d46e26e
    • Colors:
      • Just Black
      • Sorta Sage

Computers

  • Apple iMac 21" (2015) [4096 x 2304]

    • Author: @ulbwa [31.01.2022]
    • ID: 385eb0911d0edb6821c18a2193bdadaf
    • Colors:
      • Silver
  • Apple iMac 24" (2021) [4480 x 2520]

    • Author: @ulbwa [03.02.2022]
    • ID: 40a349f85ca132c2d6c1444db0be9561
    • Colors:
      • Green
      • Yellow
      • Orange
      • Pink
      • Purple
      • Blue
      • Silver
  • Apple MacBook 12" (2016) [2304 x 1440]

    • Author: @ulbwa [01.02.2022]
    • ID: f74ec99f02ed5fafbe1cb1767763ed91
    • Colors:
      • Space Gray
      • Gold
  • Apple MacBook Air (M1) (2020) [2560 x 1600]

    • Author: @ulbwa [03.02.2022]
    • ID: 1f3fe3fec5b92861b7958bc75f40fe95
    • Colors:
      • Silver
  • Apple MacBook Pro 13" (2015) [2560 x 1600]

    • Author: @ulbwa [01.02.2022]
    • ID: 2f15fb3eb0dde3b76771f3090c6ddbb6
    • Colors:
      • Silver
  • Apple MacBook Pro 15" (2015) [2880 x 1800]

    • Author: @ulbwa [01.02.2022]
    • ID: ba492b242a78b7f49caa41f61b5b3418
    • Colors:
      • Silver
  • Apple MacBook Pro 16" (2019) [3072 x 1920]

    • Author: @ulbwa [01.02.2022]
    • ID: 0bfe5c7d2a8a4e5398090c3027791ed1
    • Colors:
      • Space Gray
  • Apple MacBook Pro 16" (2021) [3456 x 2234]

    • Author: @ulbwa [01.02.2022]
    • ID: 80467845e71272f0d8d2bd13490a73f3
    • Colors:
      • Silver
      • Space Gray
  • Google Pixelbook Go (2019) [1920 x 1080]

    • Author: @ulbwa [01.02.2022]
    • ID: 6911ed9934b1c877a0b01c3750c2b79e
    • Colors:
      • Just Black
  • Apple Pro Display XDR (2019) [6016 x 3384]

    • Author: @ulbwa [01.02.2022]
    • ID: 8b728f1faab0389874db4bb0ae6244e5
    • Colors:
      • Silver

Tablets

  • Apple iPad 9 (2021) [2160 x 1620]

    • Author: @ulbwa [31.01.2022]
    • ID: 9c1f043b21ef803bd467135b83105f0b
    • Colors:
      • Gold
      • Silver
      • Space Gray
  • Apple iPad Air 4 (2020) [2360 x 1640]

    • Author: @ulbwa [31.01.2022]
    • ID: 569262bc590b30cfb296471c3c8a4af8
    • Colors:
      • Green
      • Rose Gold
      • Silver
      • Sky Blue
      • Space Gray
  • Apple iPad Mini 5 (2021) [2048 x 1536]

    • Author: @ulbwa [31.01.2022]
    • ID: 7a8b3c603fe34817d9233e5b6afed174
    • Colors:
      • Gold
      • Silver
      • Space Gray
  • Apple iPad Pro 4 11" (2020) [2388 x 1668]

    • Author: @ulbwa [31.01.2022]
    • ID: e47f6e3bb880a034866f59f97f612abe
    • Colors:
      • Silver
      • Space Gray
  • Apple iPad Pro 4 12.9" (2020) [2732 x 2048]

    • Author: @ulbwa [31.01.2022]
    • ID: 9a85db6aeb1d45c896daff67af785936
    • Colors:
      • Silver
      • Space Gray

Wearable devices

  • Apple Watch Series 6 44mm (2020) [368 x 448]
    • Author: @ulbwa [01.02.2022]
    • ID: e055638cf7325a856ed0369dc8d0dcb1
    • Colors:
      • Aluminum Case - Blue
      • Aluminum Case - Gold
      • Aluminum Case - Space Gray
      • Aluminum Case - Silver
      • Aluminum Case - Product Red
      • Titanium Case - Light
      • Titanium Case - Dark
      • Stainless Steel Case - Gold
      • Stainless Steel Case - Graphite
      • Stainless Steel Case - Silver

You can help the project by adding support for new mockups by contributing on GitHub.