[Image-SIG] Out of ideas: Can't get JPEG to work with PIL.

Lennart Regebro lennart@regebro.nu
Wed, 23 Jan 2002 19:36:12 +0100


It was a combination:
1. there was old data in the config.cache file, when I removed it it
suddenly realized that when I told it to include jpeg I actually ment it.

2. Your fix:
edit Makefile to include:
    LIBS= -L/usr/lib -lz -L/usr/local/lib -ljpeg  -lm

Even when actually specifying the path to these libs with configure it
doesn't change the Makefile, I guess thats a bug in the configure.

import _imaging
import PIL.Image
['__doc__', '__file__', '__name__', 'bit_decoder', 'blend', 'convert',
'copy', 'crc32', 'effect_mandelbrot', 'effect_noise', 'eps_encoder', 'fill',
'fli_decoder', 'font', 'getcodecstatus', 'gif_decoder', 'gif_encoder',
'hex_decoder', 'hex_encoder', 'jpeg_decoder', 'jpeg_encoder',
'linear_gradient', 'msp_decoder', 'new', 'open_ppm', 'outline',
'packbits_decoder', 'path', 'pcd_decoder', 'pcx_decoder', 'pcx_encoder',
'radial_gradient', 'raw_decoder', 'raw_encoder', 'sun_rle_decoder',
'tga_rle_decoder', 'tiff_lzw_decoder', 'wedge', 'xbm_decoder',
'xbm_encoder', 'zip_decoder', 'zip_encoder']

Tadaa! The jpeg encoder and decoder are now in the list!
So now it should work.

Again, thanks!