[Zope] Using the Photo Product

Ed Leafe ed@leafe.com
Mon, 6 Jan 2003 12:27:42 -0500


	First, thanks to all who helped me get the Photo product installed and 
working. I'm now trying to set up a test page to view the photos. If I 
use the following tag:

<span tal:replace="structure python:here.photos.mypic.tag()">pic</span>

the picture displays perfectly. However, if I try to set the display 
size with the following tag:

<span tal:replace="structure 
python:here.photos.mypic.tag(display='small')">pic</span>

I get the following error:

Error Type: ImportError
Error Value: The _imaging C module is not installed

	I followed the final instruction of the "Using PIL with Zope" page 
(http://www.zope.org/Members/regebro/PIL_zope), and copied the files 
into [zopebase]/lib/python directory. If I start python from the 
command line (running [zopebase]/bin/python ), I can successfully 
import Image (import PIL.Image), so why can't Zope find/use those 
libraries? I'm sure that I'm missing something pretty basic here.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://foxcentral.net