Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

open image in PILLOW

from PIL import Image
import glob, os

size = 128, 128

for infile in glob.glob("*.jpg"):
    file, ext = os.path.splitext(infile)
    with Image.open(infile) as im:
        im.thumbnail(size)
        im.save(file + ".thumbnail", "JPEG")
Source by pillow.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #open #image #PILLOW
ADD COMMENT
Topic
Name
5+9 =