Skip to content

Instantly share code, notes, and snippets.

@lyamamot
lyamamot / generate_app_icons.sh
Created August 9, 2017 16:29
Generate placeholder icons for iOS apps that indicate their own size (in pixels).
#!/bin/bash
# https://developer.apple.com/library/content/qa/qa1686/_index.html
function create_image() {
COLOR=$1
TEXT_COLOR=$2
SIZE=$3
NAME=$4
convert -background "$COLOR" -fill white -font "Tahoma" -size $SIZEx$SIZE label:$SIZE "$NAME"