Horje
python pillow cut image in half Code Example
python pillow cut image in half
from PIL import Image

original = Image.open(test_image)

width, height = original.size

wid = int(width / 2)

img = original.crop((0, 0, wid, height))

img.show()




Python

Related
debug console shows blank Code Example debug console shows blank Code Example
get turtle pos Code Example get turtle pos Code Example
Parallel run of a function with multiple arguments partial Code Example Parallel run of a function with multiple arguments partial Code Example
pandas within group pairwise distances Code Example pandas within group pairwise distances Code Example
flask Upload file to local s3 Code Example flask Upload file to local s3 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7