Importing PPM images with python and PIL module
问题 EDIT: Actually, I need a way I can read the lines and extract the pixel info into some structure so I can use the putpixel function to create an image based on the ppm p3 file. I've been trying this for so long and I can't just get it right. I'm working with Python Imaging Library (PIL) and I want to open a PPM image and display it as an image on the screen. How can I do that using only PIL? this is my ppm image. it's just a 7x1 image that i created. P3 # size 7x1 7 1 255 0 0 0 201 24 24 24