PIL JPEG mis-step

D

darkblueB

I got the Python Imaging Library from source, built and installed, on
Ubuntu 7.10, not realizing I could run a self-test first. libjpeg is
on the machine, but was not detected.. so no JPG encoder. I got the
dev-libjpg and rebuilt PIL. The self-test now shows JPG support.

but running setup.py install again seems to succeed, but still no
JPG :-(

fix ideas appreciated
 
I

Ivan Illarionov

I got the Python Imaging Library from source, built and installed, on
Ubuntu 7.10, not realizing I could run a self-test first. libjpeg is on
the machine, but was not detected.. so no JPG encoder. I got the
dev-libjpg and rebuilt PIL. The self-test now shows JPG support.

but running setup.py install again seems to succeed, but still no JPG
:-(

fix ideas appreciated

Make sure that libjpeg62-dev is installed
'sudo apt-get install libjpeg62-dev'

Try run 'python setup.py build_ext -f' to force setup.py to rebuild
everything with JPEG. And 'sudo python setup.py install' should install
PIL with JPEG support.

It should work on Ununtu 7.10 (works for me at least).

However, if you want Tkinter support, you should edit setup.py and change
TCL_ROOT variable:
TCL_ROOT = '/usr/lib/tcl8.4', '/usr/include/tcl8.4'

And make sure that you have tcl/tk libraries/headers:
sudo apt-get install tcl8.4-dev tk8.4-dev
 
D

darkblueB

Try run 'python setup.py build_ext -f' to force setup.py to rebuild
everything with JPEG. And 'sudo python setup.py install' should install
PIL with JPEG support.

yes, that works

(the self test still gives misleading results ?)
but running some sample program works fine

thanks
 
I

Ivan Illarionov

yes, that works

(the self test still gives misleading results ?) but running some sample
program works fine

thanks

You're welcome. To make self test inside source directory work you
probably should rebuild it inplace too.
python setup.py build_ext -f -i
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top