“Pyhton Image Redize” Respostas de código

Pyhton Image Redize

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()
Funny Fish

Pyhton Image Redize

from PIL import Image

from resizeimage import resizeimage


with open('test-image.jpeg', 'r+b') as f:
    with Image.open(f) as image:
        cover = resizeimage.resize_cover(image, [200, 100])
        cover.save('test-image-cover.jpeg', image.format)
Funny Fish

Respostas semelhantes a “Pyhton Image Redize”

Perguntas semelhantes a “Pyhton Image Redize”

Mais respostas relacionadas para “Pyhton Image Redize” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código