http://homepages.inf.ed.ac.uk/rbf/BOOKS/VERNON/toc.htm
Image
module provides the resize()
menthod to resize images.Image.resize(size, resample=0)
for
loops¶glob.glob()
¶Image.resize()
¶(width, height)
to the argument size
.resample
.Resampling Filters
-NEAREST (which is used by default)
-BOX
-BILINEAR
-HAMMING
-BICUBIC
-LANCZOS
import sys
sys.version
pip uninstall PIL
pip install Pillow==8.1.0
import PIL
PIL.__version__
from google.colab import drive
drive.mount('/content/drive')
import shutil
shutil.unpack_archive('/content/drive/My Drive/pallasite.zip', '/content/drive/My Drive')
from PIL import Image
im = Image.open('/content/drive/My Drive/pallasite/Esquel.jpg')
print(im.format, im.size, im.mode)
im