Skip to content

Added instructions for getting the script working on a Mac #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,51 @@ 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

# GTK+ for Python
brew install pygtk

# PNG Crush
brew install pngcrush
```




### 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
Expand Down