Thomas Edelmann.

Start / Blog

iOS 9 - AppIcons

20.03.2016 · Apple, Development, Entwicklung

Gerade habe ich für ein eigenes iOS und tvOS Projekt in Inkscape ein Icon entworfen. Um alle Plattformicons (25 Stück) zu erstellen, muss ich 25x in inkscape jeweils die neue Icongrüße und einen Namen angeben. Dauert …

iOS 9 App Icons iOS 9 Watch Icons tvOS 9 App Icons

Das muss doch einfacher gehen.

Tut’s auch.

Inkscape kann auch per Kommandozeile gesteuert werden. Dadurch kann ich alle Icons per Script zeitsparend erzeugen lassen.

#!/bin/sh

inkscape --export-area-drawing --export-png=icon__29.png --export-width=29 --export-height=29 $1
inkscape --export-area-drawing --export-png=icon__58.png --export-width=58 --export-height=58 $1
inkscape --export-area-drawing --export-png=icon__87.png --export-width=87 --export-height=87 $1
inkscape --export-area-drawing --export-png=icon__40.png --export-width=40 --export-height=40 $1
inkscape --export-area-drawing --export-png=icon__80.png --export-width=80 --export-height=80 $1
inkscape --export-area-drawing --export-png=icon_120.png --export-width=120 --export-height=120 $1
inkscape --export-area-drawing --export-png=icon_180.png --export-width=180 --export-height=180 $1
inkscape --export-area-drawing --export-png=icon__76.png --export-width=76 --export-height=76 $1
inkscape --export-area-drawing --export-png=icon_152.png --export-width=152 --export-height=152 $1
inkscape --export-area-drawing --export-png=icon_167.png --export-width=167 --export-height=167 $1

inkscape --export-area-drawing --export-png=icon__48.png --export-width=48 --export-height=48 $1
inkscape --export-area-drawing --export-png=icon__55.png --export-width=55 --export-height=55 $1
inkscape --export-area-drawing --export-png=icon__88.png --export-width=88 --export-height=88 $1
inkscape --export-area-drawing --export-png=icon_172.png --export-width=172 --export-height=172 $1
inkscape --export-area-drawing --export-png=icon_196.png --export-width=196 --export-height=196 $1

inkscape --export-area-drawing --export-png=icon1024.png --export-width=1024 --export-height=1024 $1