pip install pillow
python
from PIL import Image
python
image = Image.open("path/to/image.jpg")
python
width, height = image.size
resized_image = image.resize(new_size)
python
resized_image = image.resize((int(width*0.5), int(height*0.5)))
python
resized_image.save("path/to/save/image.jpg")
python
from PIL import Image
image = Image.open("path/to/image.jpg")
width, height = image.size
resized_image = image.resize(new_size)
resized_image.save("path/to/save/image.jpg")