/ios-icons-converter

Convert SVGs to PNGs of all the sizes required by the appstore.

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

ios-icons-converter

Convert SVGs to PNGs of all the sizes required by the appstore.

Prerequisites

  • python >= 3
  • imagemagick

Installing

On MacOS:

brew install python3
brew install imagemagick --with-librsvg

Example usage

python3 convert.py ~/pictures/my-svg-logo.svg ~/projects/icons/

or

python3 convert.py ~/pictures/my-svg-logo.svg ~/projects/icons/ --output_name my_base_name

Output images sizes

The sizes have been hardcoded to the ones required by iOS projects as of XCode 10.0. If they need to be changed, simply change them in convert.py:convert.

License

See LICENSE