Skip to content
Snippets Groups Projects
Commit de5a4190 authored by Antonio MATTAR's avatar Antonio MATTAR
Browse files
parents 0671d9ab cc57cab5
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ EXAMPLES:<br />
## Authors and acknowledgment
Authors:<br>
<a href="mailto:antoniomattar132@gmail.com>">Antonio MATTAR</a>
<a href="mailto:aiteldjouditamazouzt@gmail.com">Tamazouzt AIT ELJOUDI</a>
<a href="mailto:aiteldjouditamazouzt@gmail.com">Tamazouzt AIT ELDJOUDI</a>
Under the supervision of:<br>
<a href="mailto:">Dr. Benjamin MONMEGE</a>
......
File added
File added
File added
......@@ -43,7 +43,7 @@ def close_colors(a,b):
r = abs(a[0]-b[0])
g = abs(a[1]-b[1])
b = abs(a[2]-b[2])
return r*r+g*g+b*b <= 70*70
return r*r+g*g+b*b <= 100*100
variables_colors_couple = {}
......@@ -194,6 +194,9 @@ def createImage(terme):
if logic.isApplication(terme):
im = createAppImage(terme)
if im.width * im.height > 2073600:
if ((im.width * 0.5 ) * (im.height * 0.5)) < 518400:
im = im.resize((int(im.width * 0.7), int(im.height * 0.7)))
else:
im = im.resize((int(im.width * 0.5), int(im.height * 0.5)))
return My_image(im,False)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment