diff --git a/README.md b/README.md index ec52b9bb5a984b78c6f340a006389420f32a6706..6be2566448800ebbe2677a60910a2bf0868e5b63 100644 --- a/README.md +++ b/README.md @@ -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> diff --git a/__pycache__/image_maker.cpython-39.pyc b/__pycache__/image_maker.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f8e8cdcd60249af089db19df421c4166cf98156a Binary files /dev/null and b/__pycache__/image_maker.cpython-39.pyc differ diff --git a/__pycache__/logic.cpython-39.pyc b/__pycache__/logic.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0e5a612df66d64a7a7f7804140de1d3b781e7477 Binary files /dev/null and b/__pycache__/logic.cpython-39.pyc differ diff --git a/__pycache__/parsing.cpython-39.pyc b/__pycache__/parsing.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d916578212688390b3b2924be2927dea4a3e1c27 Binary files /dev/null and b/__pycache__/parsing.cpython-39.pyc differ diff --git a/image_maker.py b/image_maker.py index 3ac15170b8101c086dc00b5f03bb50756fb15a0d..a00813ab0411d4b5b022c1e2c0c3f1f5380e2a1e 100644 --- a/image_maker.py +++ b/image_maker.py @@ -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,7 +194,10 @@ def createImage(terme): if logic.isApplication(terme): im = createAppImage(terme) if im.width * im.height > 2073600: - im = im.resize((int(im.width * 0.5), int(im.height * 0.5))) + 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: raise Exception("Unsupported term type")