diff --git a/docs/cookbook.md b/docs/cookbook.md index 5a2b26a2..c31e2319 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -25,9 +25,9 @@ apply coupon for discount: - 2F6C6BE01B8940D3E457 + C967880E71496470E40E - @@ -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 diff --git a/docs/readme.md b/docs/readme.md index e73b6075..2f5ece73 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
2F6C6BE01B8940D3E457
- click here to visit course page +
apply coupon for discount:
C967880E71496470E40E
+ click here to visit course page diff --git a/readme.md b/readme.md index e73b6075..2f5ece73 100644 --- a/readme.md +++ b/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
2F6C6BE01B8940D3E457
- click here to visit course page +
apply coupon for discount:
C967880E71496470E40E
+ click here to visit course page