Created
March 20, 2015 11:41
-
-
Save ozooxo/0479325e58c3652a19f5 to your computer and use it in GitHub Desktop.
Install Mamba in Ubuntu 14.04
This file contains 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
$ python --version # check python version, >= 2.6 needed | |
Python 2.7.6 | |
$ sudo apt-get install python-pip | |
$ pip search Pillow | |
Pillow - Python Imaging Library (Fork) | |
INSTALLED: 2.3.0 | |
LATEST: 2.7.0 | |
pilbox - Pilbox is an image processing application server | |
built on the Tornado web framework using the | |
Pillow Imaging Library | |
pillowtop - A couchdbkit changes listener for doing backend | |
processing | |
django-deepzoom - A simple Django app to create deep zoom tiled | |
images. Now with OpenSeaDragon control. Python | |
2/3, Django 1.4+, Pillow 1.7.8+ compatible. | |
eirx - Simple image manipulate based on Pillow. | |
elaphe - Generates various barcodes using barcode.ps and | |
PIL/Pillow | |
pillowfluff - Map over CouchDB changes feed built to run on | |
Pillowtop | |
alurinium-image-processing - Useful image processing utils using Pillow | |
Willow - A Python image library that sits on top of Pillow, | |
Wand and OpenCV | |
pillowcase - Smooths out installation issues due to the | |
PIL/Pillow fork. | |
pillowfight - Eases the transition from PIL to Pillow for | |
projects. | |
pilwrapper - A newbie-friendly wrapper around PIL/Pillow for | |
basic image access | |
phothumb - Photo thumbnail library based on Pillow | |
pil-or-pillow - Projects can depend on this package in order to | |
optimistically depend on Pillow, but to fall back | |
on PIL if installed, issuing a warning in the | |
process. | |
Pillow-PIL - Pillow wrapper for PIL compatibility | |
$ pip install Pillow | |
$ sudo apt-get install python python-tk idle python-pmw python-imaging # make sure that tkinter is installed | |
$ sudo apt-get install python-setuptools # make sure that python distutils is set up | |
$ sudo apt-get install python-dev # make sure that python development headers are installed | |
$ sudo apt-get install swig # install SWIG | |
$ gcc -v # check gcc version, >=4.3.0 needed | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper | |
Target: x86_64-linux-gnu | |
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
Thread model: posix | |
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) | |
$ wget "http://www.mamba-image.org/download/1.1.3/Mamba.1.1.3.zip" # download Mamba source code | |
$ unzip Mamba.1.1.3.zip | |
$ cd Mamba.1.1.3/ | |
$ cd src/mambaApi/ | |
$ python setup.py build_ext build # seems that pthread is using internally!! | |
$ sudo python setup.py install | |
$ wget "http://www.mamba-image.org/examples/galaxy.png" | |
$ cat >test.py <<EOL | |
from mamba import * | |
imA = imageMb('galaxy.png') | |
posin = (125, 128) | |
imB = imageMb(256, 256) | |
cropCopy(imA, posin, imB, (0, 0), (256, 256)) | |
imB.save("cropped_galaxy.png") | |
EOL | |
$ python test.py | |
$ eog cropped_galaxy.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment