What is Python?
Python is a widely-used programming language used in many of the computer science classes here at St. Olaf.
What is PIL/Pillow?
PIL (Python Imaging Library) adds many image processing features to Python. Pillow is a fork of PIL that adds some user-friendly features.
What is cImage?
cImage.py is a Python module used for image processing.
Installing Python, PIL/Pillow, and cImage.py
Windows
- Install Python 2.7.8 (64-bit — this is important)
- Install Python 3.4.1 (64-bit — this is important)
- Download and install Pillow for Python 2
- Download and install Pillow for Python 3
- Download and install cImage
- Download cImage.py from Github
- Navigate to https://github.com/bnmnetp/cImage
- Click cImage.py, and click the button labeled Raw to see the contents of the file.
- Click File > Save Page As (Chrome & Firefox) or File > Save As (Safari) to save the file on your computer.
- Copy “cImage.py” from where you saved it to C:\Python27\Lib\site-packages and C:\Python34\Lib\site-packages\
- Download cImage.py from Github
Mac
- Install Python 3.4.1 (Python 2.7 is already installed by default)
- Download Xcode from the Mac App Store
- Navigate to Xcode > Preferences > Downloads tab
- Click the button to install the Command Line Tools
- Open Terminal (Applications/Terminal) and run:
- xcode-select –install (You will be prompted to install the Xcode Command Line Tools)
- sudo easy_install pip
- sudo pip install pillow
- pip3.4 install pillow
- Download and install cImage
- Download cimage.py
- Navigate to https://github.com/bnmnetp/cImage
- Click cImage.py, and click the button labeled Raw to see the contents of the file.
- Click File->Save Page As (Chrome & Firefox) or File->Save As (Safari) to save the file on your computer.
- Copy “cImage.py” from where you saved it to Macintosh HD/Library/Python/2.7/site-packages/
- Copy “cImage.py” from where you saved it to Macintosh HD/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/
- Download cimage.py