|
25 | 25 | <span style="font-weight: normal;"> |
26 | 26 | apply coupon for discount: |
27 | 27 | </span> |
28 | | - 2F6C6BE01B8940D3E457 |
| 28 | + C967880E71496470E40E |
29 | 29 | </div> |
30 | | - <button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=2F6C6BE01B8940D3E457','_blank');"> |
| 30 | + <button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=C967880E71496470E40E','_blank');"> |
31 | 31 | click here to visit course page |
32 | 32 | </button> |
33 | 33 | </div> |
@@ -2664,7 +2664,7 @@ def convert_to_bytes(file_or_bytes, resize=None): |
2664 | 2664 | if resize: |
2665 | 2665 | new_width, new_height = resize |
2666 | 2666 | scale = min(new_height/cur_height, new_width/cur_width) |
2667 | | - img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS) |
| 2667 | + img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS) |
2668 | 2668 | bio = io.BytesIO() |
2669 | 2669 | img.save(bio, format="PNG") |
2670 | 2670 | del img |
@@ -2747,7 +2747,7 @@ def convert_to_bytes(file_or_bytes, resize=None): |
2747 | 2747 | if resize: |
2748 | 2748 | new_width, new_height = resize |
2749 | 2749 | scale = min(new_height/cur_height, new_width/cur_width) |
2750 | | - img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS) |
| 2750 | + img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS) |
2751 | 2751 | bio = io.BytesIO() |
2752 | 2752 | img.save(bio, format="PNG") |
2753 | 2753 | del img |
|
0 commit comments