From 5cfa96abc1f67e488629688cbdc45ea1d8a6aaf1 Mon Sep 17 00:00:00 2001 From: Alejandro Santana Date: Fri, 10 Apr 2015 13:04:04 +0200 Subject: [PATCH 1/2] [CLA] Corporate CLA: anubia --- doc/cla/corporate/anubia.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/cla/corporate/anubia.md diff --git a/doc/cla/corporate/anubia.md b/doc/cla/corporate/anubia.md new file mode 100644 index 00000000000..7bd0735cdfb --- /dev/null +++ b/doc/cla/corporate/anubia.md @@ -0,0 +1,20 @@ +Spain, 2015-04-15 + +Anubía, soluciones en la nube,SL +agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Alejandro Santana alejandrosantana@anubia.es https://github.com/alejandrosantana + +List of contributors: + +Alejandro Santana alejandrosantana@anubia.es https://github.com/alejandrosantana +Juan Formoso Vasco jfv@anubia.es https://github.com/forvas +Jesús Cacabelos Reyes jrc@anubia.es https://github.com/chesucr +Eduardo Rodríguez Crespo erc@anubia.es https://github.com/erc-anubia +Jorge Soto García jsg@anubia.es https://github.com/sotogarcia +Daniel Lago Suárez dls@anubia.es https://github.com/dlsuarez From 21d3be87b339f1550b4ddc4fc6f9daf63ee080bc Mon Sep 17 00:00:00 2001 From: Alejandro Santana Date: Fri, 10 Apr 2015 13:43:46 +0200 Subject: [PATCH 2/2] [FIX] tools: image size as power of 2 Backport of 6a8f395 Fixes #5677 --- openerp/tools/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/image.py b/openerp/tools/image.py index 3520e0c6c39..86c43bcddda 100644 --- a/openerp/tools/image.py +++ b/openerp/tools/image.py @@ -93,7 +93,7 @@ def image_resize_image(base64_source, size=(1024, 1024), encoding='base64', file image.save(background_stream, filetype) return background_stream.getvalue().encode(encoding) -def image_resize_image_big(base64_source, size=(1204, 1204), encoding='base64', filetype='PNG', avoid_if_small=True): +def image_resize_image_big(base64_source, size=(1024, 1024), encoding='base64', filetype='PNG', avoid_if_small=True): """ Wrapper on image_resize_image, to resize images larger than the standard 'big' image size: 1024x1024px. :param size, encoding, filetype, avoid_if_small: refer to image_resize_image