Convert a jpg to a list of lists
问题 I'm trying to figure out how to convert a jpg into a list of lists (using python 3.2.3) such that: [ [red,blue,red,etc..], #line1 [blue,red,yellow, etc...], #line2 [orange,yellow,black,etc...], #Last Line ] Basically each list within the main list represents a horizontal line of colour values starting from the top of the image. I thought it was going to be easy, just write a little script to extract the data from the jpg file. Hah! After looking into that I realized that was going to be a lot