MockupEngineer/readme.md
2022-01-30 20:34:14 +05:00

8.5 KiB

MockupEngineer

A simple library for creating beautiful screenshots.

Navigation

Example

Apple iPhone 12 Pro Max Mockup

Apple iPhone 12 Pro Max Mockup

Install

$ python3 -m pip install MockupEngineer

Update

$ python3 -m pip install MockupEngineer --upgrade

Usage

As a standalone application:

$ python3 -m MockupEngineer

In Python console:

from MockupEngineer import MockupEngineerInstance

mockup = MockupEngineerInstance()

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

MockupEngineerInstance.generate parameters:

  • template: Template — Device template model, 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

Computers

Tablets

Wearable devices

  • Apple Watch Series 6 44mm [368 x 448] (2020)
    • Aluminum Case - Blue
    • Aluminum Case - Gold
    • Aluminum Case - PRODUCT RED
    • Aluminum Case - Silver
    • Aluminum Case - Space Gray
    • Stainless Steel Case - Gold
    • Stainless Steel Case - Graphite
    • Stainless Steel Case - Silver
    • Titanium Case - Dark
    • Titanium Case - Light

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