summaryrefslogtreecommitdiff
path: root/addons/auth_signup/data
diff options
context:
space:
mode:
authorSagar Ahirrao <sah@odoo.com>2017-03-22 16:10:25 +0530
committerThibault Delavallée <tde@odoo.com>2018-03-15 11:31:06 +0100
commit05e02059f0cdbe179a25b68dee5ca26f5e5acca0 (patch)
tree948c2603d9b6d9ae662440e1651788bf02db0d4f /addons/auth_signup/data
parent964e16a7f5598b6f2f5be75c9e591deabfaeccff (diff)
[IMP] base: resize partner image with actual aspect ratio
Purpose of this commit is to finally stop adding extra padding to website logo. Indeed not giving square logos lead to padding added to images, leading to not so beautiful logo that makes people sad. Before this commit * partner's image was resized to square 1024x1024. Extra padding was added if user provided rectangle image; * due to this website logo resized to square when rectangle logo provided; After this commit, * sizes dict can be passed in image resizer of tools; * e.g. tools.image_resize_images(vals, sizes={'image': (512, 512), 'image_small': (128, 128)}) * image field in partner will resize with max width 1024 and height based on given image ratio (still image_medium, image_small will be default square images); * now website logo will respect actual aspect ratio This commit is related to task ID 31994 . Future commits should probably clean all that mess, but at least it seems we have something that works.
Diffstat (limited to 'addons/auth_signup/data')
0 files changed, 0 insertions, 0 deletions