I found out how to use PIL to get the image dimensions, but not the file size in bytes. I need to know the file size to decide if the file is too big to be uploaded to the database.
I am trying to install PIL (the Python Imaging Library) using the command:
sudo pip install pil
but I get the following message:
Downloading/unpacking PIL
You are installing a potentially insecure and unverifiable file. Future versions of pip will …
I use this command in the shell to install PIL:
easy_install PIL
then I run python and type this: import PIL. But I get this error:
Traceback (most recent call last):
File "<console>", line 1, in <module&…