In [1]:
import sys
sys.version
Out[1]:
'3.6.9 (default, Oct  8 2020, 12:12:24) \n[GCC 8.4.0]'
In [2]:
import PIL
PIL.__version__
Out[2]:
'8.1.0'
In [3]:
pip uninstall PIL
WARNING: Skipping PIL as it is not installed.
In [4]:
pip install Pillow==8.1.0
Requirement already satisfied: Pillow==8.1.0 in /usr/local/lib/python3.6/dist-packages (8.1.0)
In [5]:
import PIL
PIL.__version__
Out[5]:
'8.1.0'
In [6]:
from google.colab import drive
drive.mount('/content/drive')
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
In [7]:
import shutil
shutil.unpack_archive('/content/drive/My Drive/pallasite.zip','/content/drive/My Drive')
In [8]:
from PIL import Image
im = Image.open('/content/drive/My Drive/pallasite/Esquel.jpg')
print(im.format, im.size, im.mode)
im
JPEG (2736, 2014) RGB
Out[8]: