mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typo that broke grayscaling of images in the previous release
This commit is contained in:
parent
2929ba8686
commit
23fd53cf1b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user