draftbit / application-asset-generator

🖼 A tool to quickly generate mobile app assets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application Asset Generator

A tool to quickly generate mobile app assets. Supports just about any format you can think of.

npm version

Library is located within /lib. Example usage within an API is located within /api, and also hosted at https://app-asset-generator-api.draftbit.com.

Requirements

  • GraphicsMagick (brew install graphicsmagick, port install GraphicsMagick)
  • If using Illustrator files (.ai or .eps), ghostscript (brew install ghostscript, port install ghostscript)

Getting Started

  • Run yarn or npm install
  • To run server: yarn start
  • To process images from command line: yarn process --imagePath= --color= [--outputDir=] OR yarn process --imageUrl= --color= [--outputDir=]

API Usage

yarn process Arguments

  • imagePath The path of the input logo image to be used for asset generation. Either imagePath or imageUrl is required
  • imageUrl The URL of the input logo image to be used for asset generation. Either imagePath or imageUrl is required
  • color The color to use as the asset background color
  • (Optional) backgroundImagePath The path of the image to use as the background of the splash screen
  • (Optional) backgroundImageUrl The URL of the image to use as the background of the splash screen
  • (Optional) outputDir The directory to output the assets. If not specified, the current directory will be used

About

🖼 A tool to quickly generate mobile app assets.


Languages

Language:JavaScript 100.0%