I was doing some googling about how images are stored, and it turns out that it's pretty over my head.
From what I understand, if you have, say, a 100 px by 100 px image, it uses 10,000 pixels, each pixel with its own R, G, and B values from 0 to 255. But then there's 8 bit, 16 bit, sRGB, and it gets complicated from there.
Then there's also grayscale:
https://en.wikipedia.org/wiki/GrayscaleOk, so here's my ultimate goal. I want to take some picture, let's say its 1,000 px by 1,000 px, and convert it into a 30 px by 30 px, grayscale picture. Then, I want to store that new picture as some kind of data type in Python. Ideally, it'd just by some kind of 2D array full of numbers from 0 to n, where 0 means completely black and n means completely white.
Is anyone familiar with this kind of thing? Am I on the right track, or am I going about this in a convoluted way?
EDIT: I was thinking something like the image in the bottom left of this video:
https://youtu.be/ilP4aPDTBPE?t=72This post was edited by Rejection on Mar 26 2016 07:14pm