This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ConcurrentOperation.swift | |
// | |
// Created by Caleb Davenport on 7/7/14. | |
// | |
// Learn more at http://blog.calebd.me/swift-concurrent-operations | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
f=$(pwd) | |
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork.png" | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png" | |
sips --resampleWidth 20 "${f}/${1}" --out "${f}/Icon-App-20x20@1x.png" | |
sips --resampleWidth 40 "${f}/${1}" --out "${f}/Icon-App-20x20@2x.png" | |
sips --resampleWidth 60 "${f}/${1}" --out "${f}/Icon-App-20x20@3x.png" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-App-29x29@1x.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Icon-App-29x29@2x.png" |