Settings

Theme

Show HN: A CLI for quickly generating 3D device mockups

github.com

5 points by rohanmenon 3 years ago · 0 comments · 1 min read

Reader

Device mockups usually require expensive and manual tools like Photoshop to generate. I was willing to sacrifice absolute quality for a tool that could do the job much faster.

Mockupgen [0] generates a 3D perspective mockup from a screenshot. Using premade templates (from the amazing work of Anthony Boyd [1]) and opencv, it masks, warps and composites the provided image onto a device rendering. I'm working on expanding the selection of devices offered (mostly MacBook and iPhone at the moment), which is a matter of finding more sources of free to use PSD mockups. Currently, it doesn't do any handling of reflections and shadows, but this is in the works.

Install with: pip install mockupgen

And run with: mockupgen screenshot.png

[0] https://github.com/rmenon1008/mockupgen [1] https://www.anthonyboyd.graphics/

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection