diff --git a/openerp/tools/image.py b/openerp/tools/image.py index e53ee879f58..f1293b52fff 100644 --- a/openerp/tools/image.py +++ b/openerp/tools/image.py @@ -183,7 +183,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()