Fix typo that broke grayscaling of images in the previous release

This commit is contained in:
Kovid Goyal 2016-06-15 08:06:05 +05:30
parent 2929ba8686
commit 23fd53cf1b

View File

@ -309,7 +309,7 @@ def crop_image(img, x, y, width, height):
# Image transformations {{{ # Image transformations {{{
def grayscale_image(img): def grayscale_image(img):
return img return imageops.grayscale(image_from_data(img))
def set_image_opacity(img, alpha=0.5): def set_image_opacity(img, alpha=0.5):
''' Change the opacity of `img`. Note that the alpha value is multiplied to ''' Change the opacity of `img`. Note that the alpha value is multiplied to