[MERGE] forward port branch 8.0 up to 91f11f8bd6
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
The Czech Republic, 18.01.2017
|
||||
|
||||
I hereby agree to the terms of the Odoo Individual Contributor License
|
||||
Agreement v1.0.
|
||||
|
||||
I declare that I am authorized and able to make this agreement and sign this
|
||||
declaration.
|
||||
|
||||
Signed,
|
||||
|
||||
Jiri Zatloukal zatloukal@apitea.com https://github.com/jirizatloukal
|
||||
@@ -232,7 +232,7 @@ def image_colorize(original, randomize=True, color=(255, 255, 255)):
|
||||
# generate the background color, past it as background
|
||||
if randomize:
|
||||
color = (randint(32, 224), randint(32, 224), randint(32, 224))
|
||||
image.paste(color)
|
||||
image.paste(color, box=(0, 0) + original.size)
|
||||
image.paste(original, mask=original)
|
||||
# return the new image
|
||||
buffer = StringIO.StringIO()
|
||||
|
||||
Reference in New Issue
Block a user