11 lines
217 B
Python
11 lines
217 B
Python
![]() |
from PIL import Image
|
||
|
import os
|
||
|
import PIL
|
||
|
import glob
|
||
|
|
||
|
|
||
|
images = [file for file in os.listdir() if file.endswith(('jpeg', 'png', 'jpg'))]
|
||
|
for image in images:
|
||
|
img = Image.open(image)
|
||
|
img.thumbnail((256,256))
|