I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image

based on that: 

import Image, ImageDraw, StringIO, os.path

def PILtest():
        image = Image.new('RGB',[25,25])
        ## IMage Stuff Happens here!
        return image

Where this would occur in a DTML-Method of:

<dtml-in SQL_COMMAND>
  <img src="PILtest"> <!--vars to be passed in with this-->
</dtml-in>

But I can't get PILtest to output the image itself.  Save() doesn't seem to be of help directly.  Anyone have any suggestions?

Jason

 



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience