Giter Site home page Giter Site logo

hesyifei / screenshotbuilder Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 0.0 1.08 MB

A Python-based command line tool that helps you generate screenshots for App Store & Google Play Store!

License: GNU General Public License v3.0

Python 100.00%
python screenshot appstore playstore generator

screenshotbuilder's Introduction

Screenshot Builder

A Python-based tool that helps you generate screenshots for App Store & Google Play Store!

Still developing... (Developed with Python 3)

Main file: main.py

Example usage:

./main.py ~/Downloads/input.png ~/Downloads/output.png 1020 1920 "example_device" -do "land" -t "Hello world!" -c "00FF00" -s 75 -f "Times New Roman.ttf" -b "FF0000" -a 100 -ff 0.3 -fh 0.2

##Demo

Input:

Command:

./main.py ./demo/input.png ./demo/output.png 1020 1920 "nexus_6p" -t "Hello world" -f "Avenir Next Condensed.ttc"

Output:

##Detail usage

./main.py -h

usage: main.py [options]

Generate screenshots for App Store & Google Play Store.

positional arguments:
  inputFile             path of the input image (screenshot)
  outputFile            path for outputting the generated image
  width                 output image width
  height                output image height
  deviceName            the device frame used in the output image

optional arguments:
  -h, --help            show this help message and exit
  -do {port,land}, --deviceOrientation {port,land}
                        the device's orientation on the output image
  -t TEXT, --text TEXT  text displayed on the top of the output image
  -c TEXTCOLOR, --textColor TEXTCOLOR
                        color of the text displayed on the output image
  -s FONTSIZE, --fontSize FONTSIZE
                        font size of the text displayed on the output image
  -f FONTFILE, --fontFile FONTFILE
                        font of the text displayed on the output image
  -b BGCOLOR, --bgColor BGCOLOR
                        the background color of the output image
  -a BGALPHA, --bgAlpha BGALPHA
                        the background's alpha (from 0-100) of the output
                        image
  -ff FADEFROM, --fadeFrom FADEFROM
                        the position (from bottom/top) for the begining of the
                        fading (0 means no fading, >0 means fade from bottom,
                        <0 means fade from top) (range -1 to 1)
  -fh FADEHEIGHT, --fadeHeight FADEHEIGHT
                        the height of fading (try yourself to see what it
                        means)

screenshotbuilder's People

Contributors

hesyifei avatar

Stargazers

Firefly avatar Jamrelian avatar Sergey Mokrushin avatar hvbird avatar Jamie Parkinson avatar maciej lobodzinski avatar Gaukas Wang avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.