python pil resize image
from PIL import Image # Image.open() can also open other image types img = Image.open("some_random_image.jpg") # WIDTH and HEIGHT are integers resized_img = img.resize((WIDTH, HEIGHT)) resized_img.save("resized_image.jpg")
python pil resize image
from PIL import Image # Image.open() can also open other image types img = Image.open("some_random_image.jpg") # WIDTH and HEIGHT are integers resized_img = img.resize((WIDTH, HEIGHT)) resized_img.save("resized_image.jpg")
pyhton image resize
from PIL import Image from resizeimage import resizeimage fd_img = open('test-image.jpeg', 'r') img = Image.open(fd_img) img = resizeimage.resize_cover(img, [200, 100]) img.save('test-image-cover.jpeg', img.format) fd_img.close()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us