All Projects → fabrik42 → Responsive_mockups

fabrik42 / Responsive_mockups

Licence: other
Takes screenshots of a webpage in different resolutions and automatically applies it to mockup templates.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Responsive mockups

Phantomjs
Scriptable Headless Browser
Stars: ✭ 28,654 (+10357.66%)
Mutual labels:  headless, phantomjs
urlbox-screenshots-node
Capture website thumbnails using the urlbox.io screenshot as a service API in node
Stars: ✭ 14 (-94.89%)
Mutual labels:  screenshots, headless
Manet
Website screenshot service powered by Node.js, SlimerJS and PhantomJS
Stars: ✭ 570 (+108.03%)
Mutual labels:  screenshots, phantomjs
Gowitness
🔍 gowitness - a golang, web screenshot utility using Chrome Headless
Stars: ✭ 996 (+263.5%)
Mutual labels:  screenshots, headless
framework
The target of this framework is to help in all the needs of a full featured API REST, from top to bottom, and at the same time having the best possible performance and security.
Stars: ✭ 88 (-67.88%)
Mutual labels:  headless
facebook-3d-photo-unity
Unity extension to take 3D screenshots for Facebook
Stars: ✭ 24 (-91.24%)
Mutual labels:  screenshots
cproto
Chrome Debugging client for Python
Stars: ✭ 29 (-89.42%)
Mutual labels:  headless
headless-gl
🎃 Windowless WebGL for node.js
Stars: ✭ 1,383 (+404.74%)
Mutual labels:  headless
badaso
The API & platform builder, build your apps 10x faster even more, it's open source & 100% free !
Stars: ✭ 650 (+137.23%)
Mutual labels:  headless
be.camp
Open source website for the beCamp unconference in Charlottesville, VA
Stars: ✭ 16 (-94.16%)
Mutual labels:  headless
screenshotgun
Open cross-platform screenshoter with cloud support and server part
Stars: ✭ 23 (-91.61%)
Mutual labels:  screenshots
captive-login
Captive-portal login utility for headless environments written in pure bash.
Stars: ✭ 23 (-91.61%)
Mutual labels:  headless
wdm4j
Automatic Selenium WebDriver binaries management for java
Stars: ✭ 16 (-94.16%)
Mutual labels:  phantomjs
agilitycms-nextjs-starter
A sample Next.js starter site that uses Agility CMS and aims to be a foundation for building fully static sites using Next.js and Agility CMS.
Stars: ✭ 19 (-93.07%)
Mutual labels:  headless
awesome-storyblok
A curated list of awesome things related to Storyblok CMS. 😏
Stars: ✭ 53 (-80.66%)
Mutual labels:  headless
img-cli
An interactive Command-Line Interface Build in NodeJS for downloading a single or multiple images to disk from URL
Stars: ✭ 15 (-94.53%)
Mutual labels:  phantomjs
ubuntu-vnc-xfce
Headless Ubuntu/Xfce containers with VNC/noVNC (Generation 1)
Stars: ✭ 51 (-81.39%)
Mutual labels:  headless
fetch
Isomorphic Wordpress API client and React hooks - super tiny, super fast.
Stars: ✭ 47 (-82.85%)
Mutual labels:  headless
java-phantomjs-wrapper
A Java wrapper around the PhantomJS binaries including a packaged HTML to PDF render script
Stars: ✭ 54 (-80.29%)
Mutual labels:  phantomjs
node-qunit-phantomjs
Run QUnit unit tests in a headless PhantomJS instance without using Grunt
Stars: ✭ 36 (-86.86%)
Mutual labels:  phantomjs

Responsive Mockups via PhantomJS 2.0

Small PhantomJS based script that allows you to automatically create mockup graphics, providing only a URL.

mockup 1 mockup 2 mockup 3

How To

  • Clone this repo
  • Edit example.js to choose mockup template and target url
  • Call phantomjs example.js (for an example with a single URL)
  • Or call phantomjs example-mobile-multiple.js (for an example with multiple URLs)

Requirements

The only external requirement is PhantomJS in version >= 2.0.0.

brew install phantomjs

Double check the version of PhantomJS

phantomjs -v

Known issues with SSL

PhantomJS seems to have problems with some SSL certficates. In case you get errors like Unable to load the address for layer [...] - you can get a more verbose output by running PhantomJS in debug mode, e.g. phantomjs --debug=true example.js.

If the output says something like SSL Error: "The issuer certificate of a locally looked up certificate could not be found", but you still want to take screenshots via HTTPS, you can deactivate SSL checks using phantomjs --ignore-ssl-errors=true example.js.

Please be aware that this disables SSL certificate validations, so don't pass credentials or other data to the script that would require a verified secure connection.

Credits for provided mockup templates

At the moment this script includes two mockup templates of pixeden.com:

The awesome people at pixeden.com gave me permission to even include the PSD files so you can tweak the mockups to fit your needs. ❤️

How can I customize the templates?

For now, mockups are based on two files: a PSD (that's the graphical template) and a metadata.js JavaScript file that contains information which resolutions to take for the screenshots and where to place them in the mockup. Based on the PSD, there are also exported "layers" that will be used to render the mockup.

Just have a look at the templates in the /templates folder, the information in the metadata.js file will map to the pixel coordinates in the PSD.

If you move or scale a device in the PSD template, you have to update the pixel coordinates in the metadata.js file and you will have to export the layers (mobile.png, tablet.png, desktop.png) again.

Additionally, keep in mind that the resulting image is just another screenshot of a html page with a canvas tag. This minimal html file is called render.html and is also contained in every template folder. So you can not only affect the appearance by modifying the PSD, you can also customize the render.html page, e.g. by HTML, CSS or even additional stuff you draw on the canvas with JS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].