Download Jpeg Library Linux
Installing missing libraries on Linux (FME 2015 and Earlier). These symptoms indicate a missing shared library which is commonly present on Linux systems. Rather than just JPEG. Resolution The missing library can be installed from your distribution's repositories. If you attempted to run the FME Workbench GUI directly, please do so again.
Image Library
How do I install the python imaging library (PIL) on Ubuntu?
I tried doing
but now when i run python selftest.py(a script I got from somewhere on the http://pythonware.com/products/pil/ website)I get (among other warning messages):
Have I somehow messed up the PIL -- how do I fix that?
Is maybe the PIL just fine, but that 'selftest.py' is not really the right program for checking to see if PIL is installed properly -- how else can I tell if PIL is installed properly or not?
(I'm using Ubuntu 12.04 LTS 'Precise Pangolin').
(What I'm ultimately trying to do is to add a 2D barcode generator to some python code,and all the 2D barcode generators I could find that were written in python all seemed to use the PIL).
Tim7 Answers
Something similar happened to me, I solved this way
And try there installing via pip install PIL.
More on what pip is can be found here. In short is a convenient (and becoming a standard) way of installing python libraries.
if it continues to fail, it can be due to PIL searching those libraries in a different path.
It turns out that the APT installations put the libraries under /usr/lib/x86_64-linux-gnu and PIL will search for them in /usr/lib/. So you have to create symlinks for PIL to see them.
Try to see if libjpeg and libz libs exist in /usr/lib/x86_64-linux-gnu and make a symlink this way
Source:http://jj.isgeek.net/2011/09/install-pil-with-jpeg-support-on-ubuntu-oneiric-64bits/
Hamish DownerThe above solution did not work for me on Ubuntu 12.10 as libjpeg was not available in the repository.
What did end up working for me was:
If you get the error 'You must put some 'source' URIs in your sources.list' then make sure that your /etc/apt/sources.list has deb-src entries which match your deb entries.
Then you must symlink the files from their actual location on your server to the location where PIL expects them.
32-bit version
64-bit version
Finally, pip install PIL
Success!
Update Sep 2014
Pillow is a more modern fork of PIL.
I just want to add, that pip install pil no longer works, at least on my machine, you have to do
pip install PIL --allow-external PIL --allow-unverified PIL
The above answers create links for x64 libraries in x86 locations. Instead I would download the PIL source then add these lines in setup.py:
after these lines (~line 211)
reinstall PIL. If you're using pip:
Then from the source directory run:
This solution work for me on Ubuntu 14.04 as libjpeg was not available in the repository.
What did end up working for me
David Foerstersudo apt-get install python-imaging now installs Pillow not PIL. As for selftest.py, you may need to check out the source to run it. And of course, you need to install the dependencies if you want PIL to support them e.g.
To run a version of PIL newer than is included in Ubuntu::
I needed to pip install Pillow in a virtualenv on 14.04 (not using system packages).
To build pillow from PyPI inside a virtualenv (Python 2.7):
.. then you can import PIL.
Corey GoldbergCorey Goldbergprotected by Community♦Feb 9 '15 at 16:42
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged pythonsoftware-installationimage-processing or ask your own question.

streamEye
streamEye is a simple MJPEG streamer for Linux. It acts as an HTTP server and is capable of serving multiple simultaneous clients.
It will feed the JPEGs read at input to all connected clients, in a MJPEG stream. The JPEG frames at input may be delimited by a given separator.In the absence of a separator, streamEye will autodetect all JPEG frames.
Installation
streamEye was tested on various Linux machines, but may work just fine on other platforms.Assuming your machine has git, gcc and make installed, just type the following commands to compile and install:
Usage
Usage: <jpeg stream> streameye [options]Available options:
-d- debug mode, increased log verbosity-h- print this help text-l- listen only on localhost interface-p port- tcp port to listen on (defaults to 8080)-q- quiet mode, log only errors-s separator- a separator between jpeg frames received at input (will autodetect jpeg frame starts by default)-t timeout- client read timeout, in seconds (defaults to 10)

Examples
The following shell script will serve the JPEG files in the current directory, in a loop, with 2 frames per second:
The following command will stream your camera (assuming it's at /dev/video0), with 30 frames per second at 640x480:

Extras
raspimjpeg.py
This script continuously captures JPEGs from a Raspberry PI's CSI camera and writes them to standard output. It works out-of-the-box on Raspbian. The following command will make a simple MJPEG streamer out of your Raspberry PI:
Why not raspivid or raspistill? Well, at the time of writing raspivid doesn't output JPEGs and raspistill only works in stills mode.
Why Python and not C? Because most of the stuff is done by the GPU, so the insignificant performance gain would not make it worth writing C code. And of course because picamera is an amazing library.
Fast, Responsive Data Performance ROG G501VW features support for PCI Express x4 solid-state disks (SSDs) and Intel Thunderbolt technology for faster data access and transfer speeds so you're not kept waiting by long game-loading times or large file transfers. ASUS Splendid Technology ROG G501VW features ASUS Splendid video technology to enhance color brightness, contrast and sharpness to produce deeper, richer colors. Tanner v15 crackle art. Stunning and Immersive Full HD Visuals ROG G501VW has a 15.6-inch, 1920x1080 Full HD IPS display to give you sharp, detailed visuals and vibrant colors for an immersive viewing experience. In-plane switching technology enables the LCD panel to showcase up to 16.77 million colors and 330cd/m² brightness, giving you outstanding color reproduction and saturation to make visuals come to life. PCI Express x4 solid state drive ROG G501VW features support for PCI Express x4 SSDs for more than four times the responsiveness and data-transfer speeds of SATA III SSDs.