Giter VIP home page Giter VIP logo

motion-splash_generator's Introduction

Splash Generator

Are you tired of spending hours creating all of the different splash image versions you need for your app?

Splash Generator effortlessly generates all of the iOS splash images you'll ever need.

Need icons? We gots them here: https://github.com/KatanaCode/motion-icon_generator

Installation

You'll need to install imagemagick first:

brew install imagemagick

Then add this line to your application's Gemfile:

gem 'motion-splash_generator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install motion-splash_generator

and add it to your Rakefile:

require 'motion/splash_generator'

Usage

Usage is super-easy:

  1. Create a template splash image and save it as resources/splash-template.png. This should be about 2048x2048 pixels.
  2. run this rake task to create your splashes rake splashes:generate. After a few glorious seconds you should see a new directory filled with images called simply "splashes/"

Configuration

You can also set the following environment variables to change the default behaviour:

Template image name/path

rake splashes:generate TEMPLATE="~/Desktop/my_template.png"

Target directory name

rake splashes:generate TARGET="resources" # we do this, but it's well bad!

Device types supported

rake splashes:generate DEVICES="iphone"
rake splashes:generate DEVICES="ipad"
rake splashes:generate DEVICES="universal" # creates all splash sizes

Adding extra splash sizes types.

Icons are defined in splashes.yaml. If you'd like to add your own custom splash sizes on a per-app basis, create a file named config/splashes.yaml in your app and stick some YAML in there.

If you see an image type that we're missing, please create a pull request or an issue.

Contributing

  1. Fork it ( https://github.com/KatanaCode/motion-splash_generator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Acknowledgements

This was based partly on https://github.com/spren9er/s9splashgen by @spren9er

By Katana Code: web developers, mobile app developers, nice guys

motion-splash_generator's People

Contributors

bodacious avatar

Watchers

 avatar  avatar  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.