I am trying to use Image.resize
from PIL
to resize an image. However, when it resizes the image it crops off about 5% from the left side of the image. Any idea how to keep it from cropping the image? Here's my code:
imgOut = Image.open('sample-out.jpg')
new_img = imgOut.resize((640,384), Image.ANTIALIAS)
new_img.save("small-out.jpg", "JPEG", optimize=True)