I'm trying to use the PIL to create a grayscale ramp, dark to light. I am able to generate an image but it is solid black. Am I using frombuffer wrong? Here is my code.
from PIL import Image #Creates the list of codes from 0 to 255 data = range(256) #Creates an image out of those codes im = Image.frombuffer("L", (256, 1), str(data), "raw", "L", 0, 1) #Resizes the image to make it easy to view im = im.resize((256, 768)).show() _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig