Skip to content

cestca/assets9-im

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova / Meteor icons and splash screens generator (including 9 patch png for Android splash screens)

with ImageMagick native dependancy

same library with native dependancy included (libvips)

Prerequisites

This project requires imagemagick.

Linux

sudo apt-get install imagemagick imagemagick-doc

macOS

Install homebrew and then:

brew install imagemagick

Windows

http://www.imagemagick.org/script/binary-releases.php#windows

  • Install the first version on this page
  • Once installed, go to ImageMagick installation path, copy magick.exe in the same folder and name it convert.exe

Install

npm install -g assets9-im

Usage

  1. Create an icon at 1024x1024 and name it icon.png.

  2. Create a splash screen at 2208x2208 and name it splash.png. Place your logo / brand in a 1200x1200 square centered in that splash screen.

  3. Run assets9-im where these two files are.

  4. (Meteor) Add the console output to your mobile-config.js

Sizes thanks to https://github.com/meteor/meteor/blob/release-1.4/tools/cordova/builder.js

Notes

  • For Meteor >= 1.3 and Cordova
  • This will crop splash screen horizontally centered and vertically centered.
  • This generates 9 patch splash screens for Android.

Credits

  • Thanks to Ipender for the inspiration
  • Thanks to aheckmann for the image manipulation library (ImageMagick) wrapper

License

MIT

About

Generate cordova/meteor icons and splash screens (9patch png) for mobile apps (with ImageMagick)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •