Skip to content

snowzurfer/ios-icons-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 https://github.com/Homebrew/homebrew-core/raw/46a2ef7c9f0380b8e19f8dfe37270caa27581353/Formula/imagemagick.rb --with-librsvg

The latter seems to be the simplest way to install imagemagick with librsvg as of May 2020. If you get an error about libldtl when installing, try reinstalling libtool as suggested here:

brew remove libtool && brew install libtool

Then try installing imagemagick again.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages