Skip to content

Instantly share code, notes, and snippets.

@gongbin
gongbin / gist:2903414
Created June 10, 2012 01:15 — forked from danielpunkass/gist:2854083
Zsh functions for easily "fixing" iOS-optimized PNG files
function fixpng ()
{
if [[ ! -f $1 ]] ; then
echo "Usage: fixpng <inputFiles> [outputFile]"
return -1
else
local inputFile=$1
local outputFile=$1
if [[ -e $2 ]] ; then
outputFile=$2