1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| Image.crop(box=None)
image.paste(im, box=None, mask=None)
image.rorate(angle, resample=0, expand=0, center=None, translate=None)
image.transpose(Image.FL) image.transpose(Image.FLIP_TOP_BOTTOM) image.transpose(Image.ROTATE_90)
image.transform(size, method, data=None, resample=0, fill=1, fillcolor=None)
from PIL import Image, ImageDraw, ImageFont, ImageFilter
img = Image.open('cat_img.jpg').resize((300,300)) d = ImageDraw.Draw(img) d.text((40, 10), 'this is BLUR', fill="Red") img = img.filter(ImageFilter.BLUR) img.save('BLUR.jpg','jpeg') img.show()
|