From d6c4c0a68385870123d57f00c2c43b48c81b4601 Mon Sep 17 00:00:00 2001 From: Scott Messinger Date: Sat, 18 May 2013 20:19:36 -0300 Subject: [PATCH 1/2] Added instructions for getting the script working on a Mac --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 264133a..4bc66d7 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,45 @@ quickly. Original details are at http://www.sublimetext.com/~jps/animated_gifs_the_hard_way.html ## Getting Started (Compiling the Example) + +### 1. Install dependencies +**Linux** ``` sudo apt-get install pngcrush python-opencv python-numpy python-scipy +``` +**Mac** + +See http://penandpants.com/2012/02/24/install-python/ +and https://github.com/mxcl/homebrew/issues/18877 + +``` +# NumPy +pip install numpy + +# SciPy +brew install gfortran +pip install scipy + +# PIL - Python Image Library +pip install pil + +# OpenCV +brew tap homebrew/science +brew install opencv +``` + + + + +### 2. Run +``` python anim_encoder.py example firefox example.html ``` + + ## Capturing your own images Images will be saved to capture, you simply need to run capture.py and then go about your task. Note you can just delete frames you don't want as you initially set up, should save you some From 5b6c63cb1f92ccf396ba6d2142c88691ea2e679c Mon Sep 17 00:00:00 2001 From: Scott Messinger Date: Wed, 17 Jul 2013 03:44:28 -0400 Subject: [PATCH 2/2] add pngcrush and gtk+ to dependency list --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4bc66d7..0e96faa 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,12 @@ pip install pil # OpenCV brew tap homebrew/science brew install opencv + +# GTK+ for Python +brew install pygtk + +# PNG Crush +brew install pngcrush ```