A tool for generating and converting image assets for all major mobile platforms.
$ npm install -g mobile-toolbelt-assets
You simply have to put all you HD assets into a folder (and its sub-folders).
You have to provide an HD black logo (with transparent background) and name it
appicon.png in the root folder.
Usage: mobile-toolbelt-assets [options] Options: -h, --help output usage information -V, --version output the version number -w, --windows generates assets for Windows projects (if not precised "all systems") -s, --ios generates assets for iOS projects (if not precised "all systems") -a, --android generates assets for Android projects (if not precised "all systems") -b, --iconBackgroundColor [iconBackgroundColor] the background color for iOS and Android generated icons -f, --iconForegroundColor [iconForegroundColor] the foreground color for all generated icons -d, --dpi [dpi] density of original HD assets (can be "@3x", "@2x", "ldpi" to "xxxdpi" or an integer in dpi) (default "@3x") -o, --output [ouput] the output folder where all generated assets will be created -i, --input [input] the input folder that contains all the original HD assets
The tool can be imported as a node module.
var assets = ;assets;
An example of input and output result is available in the
When you have to make quickly an application, you don't always have time to polish all your assets : a cross-platform simple tool for converting all my assets and generating application icons was lacking.
Roadmap / ideas
- Add unit tests
- Add support for more systems
- Add custom system support from a configuration file
- Improve resource auto-naming
- Clean source code
Copyright and license
MIT © Aloïs Deniel