Tag Archives: iOS

Gen 2 Pokémon are here!

The weekend starts tonight, it’s suppose to be 70 degrees out, and there is a whole new generation of Pokémon that need catching.  Seems like we will be spending our weekend in the park(s)!

Though I never played Pokémon as a kid, I started when Pokémon Go came out last year, and I have embraced my place on team Mystic.  I finally learned all of the G1 pokémon and now I need to learn a whole new batch!  But collecting them is a fun thing to do, and the whole family gets involved.  Adeline (age 3) wears her pikachu shirt any time it’s clean (and sometimes when it’s not) and gets excited about every pidgy she catches on her iPad!  Bradley (14) is an expert at every pokémon and their evolutions, in any generation.  Kevin and I just like collecting.  And even Alexa occasionally humors us by playing, though I admit she is less enthusiastic.

Happy hunting this weekend, Pokémon nerds!

Resize iOS Icons

When you release your app, you are required to provide your app’s icon in a lot of different sizes.  I had downloaded a program (called Prepo) that resized my icons to all the appropriate sizes, but now with stickers and other message extensions we need a whole new list of icons sizes.

I had used sips before to mass-resize everything in a folder, and I found code online  to resize icons to all the original iOS icons sizes.  Below is what I got when I tweaked it a little to work for the new message icons sizes.  This can easily be changed to whatever sizes you need.

if [ $# -gt 0 ]; then
    
	sips $1 -z 90 120 --out 60x45@2x.png
        sips $1 -z 135 180 --out 60x45@3x.png
	sips $1 -z 100 134 --out 67x50@2x.png
	sips $1 -z 110 148 --out 74x55@2x.png
	sips $1 -z 40 54 --out 27x20@2x.png
        sips $1 -z 60 81 --out 27x20@3x.png
	sips $1 -z 48 64 --out 32x24@2x.png
        sips $1 -z 72 96 --out 32x24@3x.png
    
	echo "Done."
else
    echo "You must provide the name of an image file to process."
fi

So how do you use it?  Well that’s pretty easy!

First, save the code above to a file.  Mine is called icons.sh

Next, open Terminal (it’s in your applications, in the utilities folder.)  Now you need to change to the directory that your icons.sh file is saved in.  I tend to work on my desktop and then move files to folders later when I’m done.  You change directory by typing cd so I would type:

cd desktop

Now you run the script.

./icons.sh /Users/angela/Desktop/sites/goat.png

Notice the ./ before my script’s name, and the path to the graphic file after it.  You don’t have to type out the entire path to your graphic if you don’t want, after typing the ./icons.sh and a [space] you can drag and drop the file into terminal and it will automatically insert the path.

All the icon files will be saved to the same place as your icons.sh file, in my case the desktop.


Hello, I'm Ana (short for Angela.) I am a mother of four, programmer, gamer, vegetarian, trekkie, nerd, novice meditator, and science enthusiast. I like raspberries, tap dance, and my MacBook. And I write this blog. I hope you enjoy reading it.