iOS Asset Converter
Description
ios-asset-converter is a shell script which exports @2x
and @1x
assets from single or multiple (folder) @3x
source files.
VERSION: 1.1.0 USAGE: ./ios-asset-converter.sh ~/assets ./ios-asset-converter.sh ~/asset.png DESCRIPTION: This script creates assets in @2x, @1x from @3x files - assets - the asset-folder, containing n @3x asset-files: - asset1@3x.png - asset2@3x.png - ...
🚨 Note: bare script -> no error check or anything fancy yet -> use at own risk 🚨
Usage
-
Clone
git clone https://github.com/rafaelmaeuer/ios-asset-converter cd ios-asset-converter chmod +x ios-asset-converter.sh
-
Install ImageMagic (with homebrew)
brew install imagemagick
-
Run
device:ios-asset-converter$ ./ios-asset-converter ~/assets > Processing start > Input is a directory > Process asset1 > Process asset2 > Process asset3 > Processing done