TIF 및 이미지 다루기
from PIL import Image import numpy im = Image.open('c.tiff') #~ print(im) print(im.mode) imarray = numpy.array(im) print(imarray.shape) print(im.size) im2 = im.resize((3000,4000)) print(im2.size) im2.save('im2.tiff') Constructing images PIL.Image.new(mode, size, color=0) Creates a new image with the given mode and size. Parameters: mode – The mode to use for the new image. See: Modes. size – A 2..