Skip to content

Commit 7f485c5

Browse files
committed
Remove extra space accidently added (learned you can put spaces after periods in Python?)
1 parent 3776730 commit 7f485c5

7 files changed

+9
-9
lines changed

DemoPrograms/Demo_Emoji_Toolbar_PIL.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def convert_to_bytes(file_or_bytes, resize=None, fill=False):
9292
if resize:
9393
new_width, new_height = resize
9494
scale = min(new_height / cur_height, new_width / cur_width)
95-
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL. Image.LANCZOS)
95+
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL.Image.LANCZOS)
9696
if fill:
9797
if resize is not None:
9898
img = make_square(img, resize[0])

DemoPrograms/Demo_Graph_Elem_Image_Album.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
4444
if resize:
4545
new_width, new_height = resize
4646
scale = min(new_height/cur_height, new_width/cur_width)
47-
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL. Image.LANCZOS)
47+
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
4848
bio = io.BytesIO()
4949
img.save(bio, format="PNG")
5050
del img

DemoPrograms/Demo_Image_Elem_Image_Viewer_PIL_Based.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
4545
if resize:
4646
new_width, new_height = resize
4747
scale = min(new_height/cur_height, new_width/cur_width)
48-
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL. Image.LANCZOS)
48+
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
4949
with io.BytesIO() as bio:
5050
img.save(bio, format="PNG")
5151
del img

DemoPrograms/Demo_Image_Viewer_Thumbnails.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def convert_to_bytes(file_or_bytes, resize=None, fill=False):
5656
if resize:
5757
new_width, new_height = resize
5858
scale = min(new_height / cur_height, new_width / cur_width)
59-
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL. Image.LANCZOS)
59+
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL.Image.LANCZOS)
6060
if fill:
6161
img = make_square(img, THUMBNAIL_SIZE[0])
6262
with io.BytesIO() as bio:

DemoPrograms/Demo_Matplotlib_Grid_of_Graphs_Using_PIL.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
890890
if resize:
891891
new_width, new_height = resize
892892
scale = min(new_height/cur_height, new_width/cur_width)
893-
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL. Image.LANCZOS)
893+
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
894894
with io.BytesIO() as bio:
895895
img.save(bio, format="PNG")
896896
del img

DemoPrograms/Demo_PNG_Thumbnail_Viewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
5959
if resize:
6060
new_width, new_height = resize
6161
scale = min(new_height / cur_height, new_width / cur_width)
62-
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL. Image.LANCZOS)
62+
img = img.resize((int(cur_width * scale), int(cur_height * scale)), PIL.Image.LANCZOS)
6363
with io.BytesIO() as bio:
6464
img.save(bio, format="PNG")
6565
del img
@@ -80,7 +80,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
8080

8181
def set_image_to_blank(key):
8282
img = PIL.Image.new('RGB', (100, 100), (255, 255, 255))
83-
img.thumbnail((1, 1), PIL. Image.LANCZOS)
83+
img.thumbnail((1, 1), PIL.Image.LANCZOS)
8484
bio = io.BytesIO()
8585
img.save(bio, format='PNG')
8686
imgbytes = bio.getvalue()

docs/cookbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
26642664
if resize:
26652665
new_width, new_height = resize
26662666
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.LANCZOS)
26682668
bio = io.BytesIO()
26692669
img.save(bio, format="PNG")
26702670
del img
@@ -2747,7 +2747,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
27472747
if resize:
27482748
new_width, new_height = resize
27492749
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.LANCZOS)
27512751
bio = io.BytesIO()
27522752
img.save(bio, format="PNG")
27532753
del img

0 commit comments

Comments
 (0)