Pillow - Resizing a GIF
问题 I have a gif that I would like to resize with pillow so that its size decreases. The current size of the gif is 2MB. I am trying to resize it so its height / width is smaller decrease its quality. With JPEG, the following piece of code is usually enough so that large image drastically decrease in size. from PIL import Image im = Image.open("my_picture.jpg") im = im.resize((im.size[0] // 2, im.size[1] // 2), Image.ANTIALIAS) # decreases width and height of the image im.save("out.jpg", optimize