Author: Chris Lattner
This file contains hidden or 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
#!/usr/bin/env python | |
import urllib, urllib2 | |
import cookielib | |
import os | |
from contextlib import closing | |
import re | |
import getpass | |
import webbrowser | |
import sys |
I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!
Install FFmpeg
- $ brew install ffmpeg [all your options]
- Example: $ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools
Install ImageMagick
This file contains hidden or 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
// npm install -g mobile-icon-resizer | |
// https://github.com/muzzley/mobile-icon-resizer | |
// mobile-icon-resizer -i icon1024.png --platforms ios --config config.js --iosof ios | |
function make(width, scale) { | |
var name = width + ""; | |
var filename; | |
if (scale === 1) { | |
filename = "-" + name + ".png"; |