Пример #1
0
def effects():
    img = magick.image('testimages/original.jpg')
    new = magick.blur(img,3,1.5)
    new = magick.blur('testimages/original.jpg',3,1.5)  #also works
    new = magick.rotate(img,20)
    new = img.copy()
    new.contrast(10)
    out = magick.border(img,6,6,bordercolor='red')
    out = magick.charcoal(img,1,0.5)
    out = magick.colorize(img, 'red', 0.30)
Пример #2
0
def animate1():
    img = magick.scale('testimages/original.jpg',(100,-1))
    img2 = magick.blur(img, 5, 1.5)
    imgs = magick.image(img, img2)
    imgs.write('ani1.gif')
    return