Git Product home page Git Product logo

svg2pngs4apple's Introduction

SVG to PNG converter for Icons for the Apple App Store

AKA, a way not to have to make 17 copies of the same file

This is a shell script that converts one SVG into all the PNGs apple requires for icons for an app submission.


Overview

Hey there! I hope you're making a really cool app. Generating the many icons for the app store is a pain in the boot, so this will take care of that for you.

Currently, this generates PNGs with the dimensions:

  • 20 x 20
  • 29 x 29
  • 40 x 40
  • 58 x 58
  • 60 x 60
  • 76 x 76
  • 80 x 80
  • 87 x 87
  • 120 x 120
  • 152 x 152
  • 167 x 167
  • 180 x 180
  • 83.5 x 83.5
  • 1024 x 1024

It works best with SVGs, but will work with pretty much any file.

This is a shell script, so you will run this from your Terminal.

This script was written for Macs, but may work with other machines!


How to use

Requirements

You must have the imagemagick convert package installed.

To install, if using homebrew (you should), run

brew install imagemagick
Setup

Nagivate to the folder where the shell script is (by default, it will be wherever you clone this repository to). Then, give this file permission to execute

chmod 755 svg2pngs4apple.sh

After that, you will be ready to run the script.

Using the program

To run, execute the shell script with your file name as the only argument.

Example:

./svg2pngs4apple.sh jar-logo.svg

This will create a directory called "PNGs" that has all the files you need.

Done! Enjoy & good luck!


Authors

  • Alex Ray - Entire Repository - jalexray

License

This project is licensed under the standard MIT License

svg2pngs4apple's People

Contributors

jalexray avatar

Stargazers

jeff greenberg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.