New Udemy Coupon Code
This commit is contained in:
parent
fe31a0a7ed
commit
f78e4913a2
3 changed files with 8 additions and 8 deletions
|
@ -25,9 +25,9 @@
|
|||
<span style="font-weight: normal;">
|
||||
apply coupon for discount:
|
||||
</span>
|
||||
2F6C6BE01B8940D3E457
|
||||
C967880E71496470E40E
|
||||
</div>
|
||||
<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');">
|
||||
<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');">
|
||||
click here to visit course page
|
||||
</button>
|
||||
</div>
|
||||
|
@ -2664,7 +2664,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
|
|||
if resize:
|
||||
new_width, new_height = resize
|
||||
scale = min(new_height/cur_height, new_width/cur_width)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS)
|
||||
bio = io.BytesIO()
|
||||
img.save(bio, format="PNG")
|
||||
del img
|
||||
|
@ -2747,7 +2747,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
|
|||
if resize:
|
||||
new_width, new_height = resize
|
||||
scale = min(new_height/cur_height, new_width/cur_width)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
|
||||
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS)
|
||||
bio = io.BytesIO()
|
||||
img.save(bio, format="PNG")
|
||||
del img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue