PIL: Create one-dimensional histogram of image color lightness?
I've been working on a script, and I need it to basically: Make the image greyscale (or bitonal, I will play with both to see which one works better). Process each individual column and create a net intensity value for each column. Spit the results into an ordered list. There is a really easy way to do this with ImageMagick (although you need a few Linux utilities to process the output text), but I'm not really seeing how to do this with Python and PIL. Here's what I have so far: from PIL import Image image_file = 'test.tiff' image = Image.open(image_file).convert('L') histo = image.histogram(