Skip to content
Snippets Groups Projects
Commit 42a9c8c8 authored by Dahmane Lynda's avatar Dahmane Lynda
Browse files

diviser_image.py

parent 6eddf721
Branches
No related tags found
No related merge requests found
from PIL import image
def diviser_image(image ,taille):
"""à_remplacer_par_ce_que_fait_la_fonction
Précondition :
Exemple(s) :
$$$
"""
largeur,hauteur=image.size
blocs=[]
for i in range(0,largeur,taille):
for j in range(0,hauteur,taille):
blocs=image.crop((i,j,i+taille,j+taille))
blocs.append(bloc)
return blocs
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment