You can't "translate this number properly", because all that number means is where in memory Pillow is storing the object, and there's nothing useful you can translate that to.
If you're trying to get information out of an object in Python, you do that by accessing its attributes and methods.
The object returned by Image.open
is an Image.Image
object. It has attributes like mode
(a string like "RGB"
), and methods like getextrema
(a pair of minimum and maximum pixel values, like (3, 237)
).
The object returned by its getdata
method is just a flat sequence of pixel values. It doesn't have much useful information to get, unless you actually want to iterate over those pixel values. So, you can't "translate" that into anything useful.
So, if you want some information about the image, you have to know which information you want, then look in the docs to see how that information is accessed. For example, if you want the mode of the image:
>>> import Image
>>> img = Image.open("mini.jpg")
>>> print img.mode
RGB